Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Invalid Scope error

I have created an app of V2.3 with rails app. It was working fine before April 30th. Now I am getting this error :

Invalid Scopes: offline_access, publish_stream, create_event, friends_events. 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

I have even given permission to the app via Graph API Explorer. Still I am not able to resolve it.

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

Adding Comments - This didn't solve my problem. I have tried this solution.

Any suggestions?

Thanks

like image 614
Avi Avatar asked May 07 '15 07:05

Avi


2 Answers

All those permissions don´t exist anymore, some of them are deprecated since many years - and v1.0 was removed at April 30th, 2015 - meaning, a lot of deprecated stuff is not working anymore. Check out the changelog for more information: https://developers.facebook.com/docs/apps/changelog

I suggest not using old online tutorials to copy code from, always use the Facebook docs first.

like image 159
andyrandy Avatar answered Sep 21 '22 10:09

andyrandy


I don't understand why you have to post the question, as you linked the one already answered yesterday.

You have to remove the repsective permissions from the scope parameter of the Login URL.

See

  • https://developers.facebook.com/docs/facebook-login/login-flow-for-web/#logindialog
  • https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow/v2.3#login

scope: A comma separated list of Permissions to request from the person using your app.

You CANNOT use these permissions after April 30th 2015.

like image 35
Tobi Avatar answered Sep 19 '22 10:09

Tobi