How do you get long-lived access tokens from the Facebook Graph API (server-side auth)?

后端 未结 2 1022
醉酒成梦
醉酒成梦 2021-02-10 09:08

Since Facebook is removing the offline_access permission, I want to go ahead an migrate our website to use the new system.

I found this document on Facebook\'s website:

相关标签:
2条回答
  • 2021-02-10 09:11

    Since Facebook is removing the offline_access permission, I want to go ahead an migrate our website to use the new system.

    Ensure you enabled "Remove offline_access permission" in the advanced settings of your app

    Advanced settings

    If you did, you might be hitting a bug https://developers.facebook.com/bugs/378106708911903

    0 讨论(0)
  • 2021-02-10 09:13

    Not sure if you know it. But the access token will only be renewed once a day, no matter how many times the user logs in into your application.

    See: https://developers.facebook.com/roadmap/offline-access-removal/

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