How to disable Facebook single sign on for android - Facebook-android-sdk

后端 未结 4 1653
感动是毒
感动是毒 2020-11-27 21:20

SSO for facebook android gives me invalid_key every time, i tried to debug by every means but it is not working. So is there any way/hack to disable Single Sign on and work

相关标签:
4条回答
  • 2020-11-27 21:37

    The invalid key issue could be because of a number of reasons, some of which I've detailed in this answer

    0 讨论(0)
  • 2020-11-27 21:44

    ohh, Got answer make call to authorize method with activity code FACEBOOK.FORCE_DIALOG_AUTH mFacebook.authorize(activity, permissions, activityCode, listener); replace activityCode with FORCE_DIALOG_AUTH

    0 讨论(0)
  • 2020-11-27 21:59

    https://developers.facebook.com/docs/reference/android/3.0/class/SessionLoginBehavior/#SUPPRESS_SSO This code worked well for me.

    0 讨论(0)
  • 2020-11-27 22:00

    You likely don't want to use FORCE_DIALOG_AUTH as the solution because this disables the very useful Single Sign On feature completely. Instead, if you go through the steps of setting up your application properly with Facebook, that should address the invalid_key issues. You can find a detailed explanation of this on my blog:

    http://sean.lyn.ch/2011/07/android-the-facebook-sdk-sso-and-you/

    0 讨论(0)
提交回复
热议问题