androidfacebookapp-id

Use two Facebook App ID in a single Android app


Need to switch between two Facebook App in a single android app. But the Facebook Andorid SDK accesses Facebook app ID from the Meta info defined in the Manifest and app ID defined in strings.xml file.

 <meta-data
        android:name="com.facebook.sdk.ApplicationId"
        android:value="@string/fbappid" />

Both of them cannot be updated in run-time.

Is there a way to include two Facebook APP ID in a single Android app ?

USE CASE :

Making an app for a Television channel. The app is designed for two different TV shows having respective Facebook apps. So when user switches between the two shows, have to initialize the Facebook SDK with the respective app ID.


Solution

  • So, as per the comments and other research, Facebook Android SDK does not support multiple APP ID's.