且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android的 - Facebook的SDK 3 - 如何以编程方式登录,而无需LoginButton

更新时间:2023-09-10 18:40:28

就是你发布你的整个活动?

Is what you posted your entire Activity?

您还需要重写onActivityResult,和值传递给Session.getActiveSession()。onActivityResult(...)。否则,会议将不知道该用户已授权您的应用程序,这就是为什么你看到的错误(会议认为,仍有未决的身份验证请求,这就是为什么你不能重新授权进行发布​​)。

You also need to override onActivityResult, and pass the values to Session.getActiveSession().onActivityResult(...). Otherwise, the Session won't know that the user has authorized your app, and that's why you see the error (Session thinks that there's still a pending auth request, which is why you can't reauthorize for publish).