Django : How to handle rejected permission in allauth?

I am using allauth 0.20.0 in django 1.8.2 for Facebook authentication in my app. Everything works fine if the user grants all the requested permission. However, I get a login failure message, when , for example, the user deny permission ‘user_friends’. I assume, that this is the expected result from allauth.

Is there a way to make ‘user_friends’ permission optional? So, as long as I have user’s public profile and e-mail, the user can be logged in.

Any pointers to methods and classes that I will need to tweak?
Thanks!


Source: facebook

Leave a Reply