Always return Error FBErrorCategoryUserCancelled while login with facebook in my application

后端 未结 1 1201
迷失自我
迷失自我 2021-02-08 11:26

In my Application there are three ways of login. one of them is login with facebook. But when I click on facebook button it ask me for accesing permissions, when click OK<

1条回答
  •  轮回少年
    2021-02-08 11:54

    In my case it was because the facebook app's sandbox mode was still on, and therefore result in FBErrorCategoryUserCancelled for anyone who is not an administrator/developer/tester of the app.

    To turn off sandbox mode on facebook, go to https://developers.facebook.com/apps/YOUR_FACEBOOK_APP_ID/review-status/

    See where it says "Do you want to make this app and all its live features available to the general public?", make it to be YES. (You might need to insert a contact email before you can access this option).

    Or, if you don't want to make the app go public just yet, invite the tester to be an admin/developer/tester of the app. The person need to accept your invitation before he can use it.

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