Facebook Graph API rejects newly created access token

前端 未结 7 1265
孤独总比滥情好
孤独总比滥情好 2020-12-24 05:57

Earlier today, the Facebook login flow of our web application stopped working for some users. When we try to fetch the current profile, an error is returned. It claims that

7条回答
  •  盖世英雄少女心
    2020-12-24 06:33

    Update:

    The issue seems to have just been fixed by Facebook.


    I filed a bug with Facebook and they are currently (5/3/18) working on a resolution.

    There are several workarounds suggested here and in the bug comments. To summarize:

    1. Add a new permission that you previously didn't ask for to force re-authorization
    2. Catch the error and re-authorize the user manually via auth_type=reauthorize
    3. Switch to JS SDK and use client-side login

    I'm going for solution #2 as it seems to be the most straight-forward way.

提交回复
热议问题