在Facebook的身份验证不 [英] Can not authenticate in Facebook
问题描述
我在做Android的应用程序中,我设置按钮,点击Facebook的身份验证。
但是,当我点击该按钮,它回来我的活动。
I made an application in android in which I set Facebook authentication on button click. But when I click that button it comes back to my activity.
我知道,问题是:我不能登录到Facebook,因为我曾与Facebook应用程序,在我的设备已经登录
I know that problem is that : I can not log in to Facebook because I have already signed in with Facebook app in my device.
然后我的问题是我怎么可以分别登录在我的Android应用和Facebook应用程序?
Then my question is how can I log in separately in my Android app and Facebook app?
推荐答案
最后我用这个解决了这个问题:
finally I solved the problem using this:
打开Facebook.java被Facebook SDK提供的,然后我有这样的变化:
Open Facebook.java provided by facebook sdk and then i had changes like this:
public void authorize(Activity activity, String[] permissions,
int activityCode, final DialogListener listener) {
boolean singleSignOnStarted = false;
mAuthDialogListener = listener;
/* // Prefer single sign-on, where available.
if (activityCode >= 0) {
singleSignOnStarted = startSingleSignOn(activity, mAppId,
permissions, activityCode);
}
// Otherwise fall back to traditional dialog.
if (!singleSignOnStarted) {*/
startDialogAuth(activity, permissions);
// }
}
终于可以能够在这两个应用程序登录在我的设备
Finally i can able to login in both app in my device
这篇关于在Facebook的身份验证不的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!