How to remove permissions offline_access and publish_stream in scope variable

扶醉桌前 提交于 2020-01-06 01:05:12

问题


I have error when I want login drupal 7 with facebook account and I use module hybridauth.

like this:

Invalid Scopes: offline_access, publish_stream. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.facebook.com/docs/facebook-login/permissions

From same question I found the answer and it is to remove permissions offline_access and publish_stream in scope variable but I don't understand how to do that?

anyone can help me?


回答1:


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




回答2:


If you have following Url request while login with Facebook authentication (1). Then you have to remove last parameter you are sending and try following url (2) request hope it will works.

https://www.facebook.com/dialog/oauth?client_id=113006002193070&redirect_uri=http%3A%2F%2Fyougagged.com%2Findex&scope=email%2C+offline_access (1)
https://www.facebook.com/dialog/oauth?client_id=113006002193070&redirect_uri=http%3A%2F%2Fyougagged.com%2Findex (2)


来源:https://stackoverflow.com/questions/30096263/how-to-remove-permissions-offline-access-and-publish-stream-in-scope-variable

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