Retrieving data on facebook after login using django-social-auth

We created an application that uses the django-social-auth extension to authenticate users using Facebook. Authentication works fine, but we don’t know how to fetch useful information from Facebook (friends lists, likes, etc.). It seems that django-facebook handles some of these functions, but also handles authorization aspects. Is there an application that will sit neatly on top of django-social-auth and provide a framework for using facebook data? Using django-social-auth and django-facebook together seems kludgy.

+6
source share
2 answers

You might want to learn facepy . You can use the oAuth Facebook access token, which django-social-auth stores in your database and makes any Graph API call your application is allowed for this user.

+4
source

You can’t roll it too hard. Facebook's graphical API is just an HTTP request with access_token access, and it returns JSON data.

+2
source

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


All Articles