The OAuth2 specification states that “perms” should now be called a “scope”. Please update. Django facebook connect

If the site is django baseg and I am using django-facebook (Django Facebook by Thierry Schellenbach) And today I noticed that there is an error logging in with facebook, the error message is:

The OAuth2 specification states that "perms" should now be called a "scope." Please update. FB.provide ('', {getLoginStatus: function ... signed_request, code '}); return a;}}});

And I don’t know how to fix it.

(I do not want to download the new version because I made some changes with the registration of the model, etc.)

+4
source share
1 answer

Please add all places associated with "perms" to "scope". Example: "

if (response.session) { // logged in and connected user, someone you know if (response.perms) { 

"

to

"

 if (response.session) { // logged in and connected user, someone you know if (response.scope) { 

"

Feel free to have any problems.

Good luck.

0
source

Source: https://habr.com/ru/post/1387755/


All Articles