Android - Facebook SDK 3 - How to login programmatically without LoginButton

后端 未结 3 1482
难免孤独
难免孤独 2020-12-24 01:45

I am writing an app that integrates with Facebook SDK, to share some (string) content as a wall post. Now, I made the HelloFacebookSample work. However It uses their LoginBu

3条回答
  •  时光说笑
    2020-12-24 02:16

    Is what you posted your entire Activity?

    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).

提交回复
热议问题