I am getting this error when I build and run your Sdkbox-samples on eclipse.
java.lang.RuntimeException: Unable to get provider com.facebook.FacebookContentProvider: java.lang.ClassNotFoundException: com.facebook.FacebookContentProvider
I’ll take a look into that.
Any update? I am getting same error when integrating facebook on Android
Did you successful using facebook login and share or api on Android?
I’m facing issue cannot using facebook share or api although my account was granted with publish_post permission. It’s ok for iOS but Android the access_token is alway empty. If you getting same issue I think I will fallback to manual integrate facebook on Android.
Here is my issue posted [Facebook] Share and Api not work. access_token alway empty in facebook request URL although publish_post permission granted
Let us ask @Ibon to take a look into that.
@tmh
No I haven’t been able to go to the login part, for me the app just crashes as soon as it starts, but working perfectly on iOS
i dont remember how i did it but …check if application.mk file has
APP_PLATFORM := android-15 not APP_PLATFORM := android-15 android-19
check if the facebook project is added to eclipse .Its in your package explorer.If not just Import it to the workspace from cocos2d .
Another thing …make sure your Cocos2dxActivity.java file has the SDKBox methods implemented
where is the facebook project ? in cocos2dx documentation they did not mention to import anything else except .jar file.
Here is the doc link.
http://docs.sdkbox.com/en/plugins/facebook/v3-cpp/
Copy the facebook_lib directories from plugin/android/libs to your <project_root>/libs/ directory.
Add following line to your project.properties
android.library.reference.1=./libs/facebook_lib