本文介绍了在一个Android应用程序中使用两个Facebook App ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要在单个android应用中的两个Facebook应用之间切换.但是,Facebook Andorid SDK通过清单中定义的元信息和strings.xml文件中定义的应用程序ID访问Facebook应用程序ID.

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.

是否可以在一个Android应用程序中包含两个Facebook APP ID?

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

使用案例:

为电视频道制作应用.该应用程序是为两个具有各自Facebook应用程序的不同电视节目而设计的.因此,当用户在两个节目之间切换时,必须使用各自的应用程序ID初始化Facebook SDK.

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.

推荐答案

因此,根据评论和其他研究,Facebook Android SDK不支持多个APP ID.

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

这篇关于在一个Android应用程序中使用两个Facebook App ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-26 21:56
查看更多