I am facing problem in trying to use the sdkbox to integrate facebook on android

I have been trying to use the sdkbox for android since last week, even though it works perfectly fine on iOS but when i try to do it on Android(eclipse) i am facing problems. I download a sample project which you provided on a thread and tried to build it but due to some reason i am getting this errors.

java.lang.RuntimeException: Unable to get provider com.facebook.FacebookContentProvider: java.lang.ClassNotFoundException: com.facebook.FacebookContentProvider

Can you tell me where I am doing wrong? @slackmoehrle

I got this issue because was trying to add manually Faccebook SDK 3.x , FacebookContentProvider is available starting from Facebook SDK v4.x, check which Facebook sdk is linked to project.

@energyy Can I have a link for a sample project of Facebook SDK v4.x if there is any?

I’m not sure regarding sample project with SDKBOX already integrated, didn’t used any.

But if you know how to link Facebook sdk to that project, you can download Facebook sdk 4.x from facebook developer site.

Just googled, this one looks more latest then in your link: https://github.com/darkdukey/sdkbox-facebook-sample

Yes, this is the latest one, let me know if it has any issues :slight_smile:

Just import Facebook and FB_LibProject_complete to your project. It has solved my problem.

Hello everyone,
I am trying to integrate facebook in my app through SDKBOX but facing some issue with login on android device.

I am following this tutorial.
Can somebody help me out? :’)

Cocos2dx 3.9 Latest Sdkbox. Device Nexus 4.

@slackmoehrle :smile:
Android Manifest file.

<uses-sdk android:minSdkVersion="9" />
<uses-feature android:glEsVersion="0x00020000" />

<application hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name">


    <meta-data android:name="android.app.lib_name" android:value="cocos2dcpp" />

    <activity android:configChanges="orientation" android:label="@string/app_name" android:name="org.cocos2dx.cpp.AppActivity" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">

        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
<activity android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation" android:label="@string/app_name" android:name="com.facebook.FacebookActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" /><meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id" />
<provider android:authorities="com.facebook.app.FacebookContentProvider1602801803302391" android:exported="true" android:name="com.facebook.FacebookContentProvider" />

</application>

<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:xlargeScreens="true" />

<uses-permission android:name="android.permission.INTERNET" />

Hi @shahidammer

If you are following the tutorial, it should work.
could you please make sure that your facebook app status is live ?