Error Invalid Scopes: offline_access, publish_stream, when I try to connect with Facebook API

前端 未结 3 1044
独厮守ぢ
独厮守ぢ 2020-12-01 12:16

I got this error when I try to connect with Facebook API

Invalid Scopes: offline_access, publish_stream. This message is only shown to develop

相关标签:
3条回答
  • 2020-12-01 12:35

    Just use publish_actions instead of publish_stream.

    0 讨论(0)
  • 2020-12-01 12:36

    The permissions offline_access and publish_stream are deprecated, thus cannot be requested anymore.

    publish_stream can be replaced by publish_actions, offline_access is gone.

    See

    • https://developers.facebook.com/docs/facebook-login/permissions/v2.4#reference
    • https://developers.facebook.com/docs/apps/changelog
    0 讨论(0)
  • 2020-12-01 12:40

    In the below form you can see the value having the publish_stream and offline_access parameters which is deprecated as said above by Tobi.

    <form th:action="@{/signin/facebook}" method="POST">
            <button type="submit">Sign in with Facebook</button>
            <input type="hidden" name="scope" value="email,publish_stream,offline_access" />
    </form>
    

    so remove those two parameters and change the to,

    <input type="hidden" name="scope" value="email,publish_actions" />
    
    0 讨论(0)
提交回复
热议问题