Overview

On the Kongregate Panel a user may choose to login using their Facebook account. On iOS the Kongregate SDK will attempt to authorize the app and login the user through the System Account. On Android the Kongregate SDK will attempt to authorize the app and login the user using the FB App. If your game uses the FB SDK v3.x it will further attempt to log the user in using a web view. The FB SDK 4.x no longer supports using multiple app IDs, so our SDK does not attempt to use FB SDK 4.x. Instead we fallback to our own web based integration with FB.

Facebook SDK Setup

The FB SDK is no longer required by the Kongregate SDK. If you wish to use the FB SDK, here are some references to get you started.

Android

The first step is to download the SDK. Then, follow the steps in the Android documentation. Ensure that you add the Facebook SDK as a library project along with adding the Facebook Activity to the AndroidManifest.xml. You do not need to worry about setting the Facebook application ID in the manifest unless you are integrating your own Facebook app, as the Kongregate SDK uses its own application ID internally.

Note - Since the Facebook SDK includes android-support-v4.jar it has been removed from the Kongregate SDK itself to prevent conflicts. If you also include this in your project, you’ll either need to remove it form the Facebook SDK or your project in order to build.

iOS

Download the Facebook SDK, and run the installer. Follow the steps in the iOS documentation. Make sure to add the FacebookSDK.framework to your Xcode project. You do not need to worry about adding any information such as the Application ID to the info.plist file unless you are integrating your own Facebook app, as the Kongregate SDK uses its own application ID when making calls.

Unity

Download the Facebook SDK unitypackage and import it into your project. The unitypackage should automatically set up the correct jars/libraries for you.