访问令牌在发布的Android SDK的Facebook 4.0移除时 [英] Access Token Removed when posting facebook sdk 4.0 in Android
问题描述
通过以下用于登录和发布Facebook的样品,我登录后我得到的名字和我的个人资料,照片,当我尝试张贴在墙上以下部分。
By following the facebook sample for login and posting, after I do login and I get name and photo of my profile , when I try to post on wall in the following part..
if (accessToken != null) {
pendingAction = action;
if (hasPublishPermission())
{ handlePendingAction();
} else
{
LoginManager.getInstance().logInWithPublishPermissions(this,Arrays.asList(PERMISSION));
return;
}
}
我得到ACCESS_TOKEN_REMOVED权限:[user_friends,public_profile,基本信息]
为什么,如果我成功登录的权限被删除。我们怎样才能解决这个问题?
I get ACCESS_TOKEN_REMOVED permissions: [user_friends,public_profile,basic info] Why the permissions are removed if I successfully login. How can we fix it?
推荐答案
下面是一些一般的提示,以帮助您调试这样的:
Here are some general tips to help you debug this:
- 尝试升级到最新的SDK
- 尝试在不同的设备/仿真器
- 尝试卸载应用程序,并从重新授权这里
- try to update to the latest SDK
- try on different devices/emulators
- try uninstalling the app and re-authorize from here
现在许可的具体问题,确保为总是测试首先与谁是一个管理/开发者,用户/应用程序的测试,因为测试将失败,普通用户,如果你的应用程序是:
Now for permission specific issues, make sure to always test first with a user who's an Admin/Developer/Tester of an app, since your test will fail with normal user if you app is:
- 不公开的(仍处于发展模式)
- 公开,但要针对测试的权限还没有被Facebook 批准 LI>
- not public (still in development mode)
- public BUT the permission you are testing against is not yet approved by Facebook
这篇关于访问令牌在发布的Android SDK的Facebook 4.0移除时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!