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

送分小仙女□ 提交于 2019-11-27 08:13:12

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

Just use publish_actions instead of publish_stream.

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" />
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!