Use two Facebook App ID in a single Android app

旧城冷巷雨未停 提交于 2019-12-08 12:32:52

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/26681939/use-two-facebook-app-id-in-a-single-android-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!