python-social-auth

How to retrieve Facebook friend's information with Python-Social-auth and Django

此生再无相见时 提交于 2019-11-30 02:13:40
How can I retrieve Facebook friend's information using Python-Social-auth and Django? I already retrieve a profile information and authenticate the user, but I want to get more information about their friends and invite them to my app. Thanks! You can do it using Facebook API. Firstly, you need obtain the token of your Facebook application ( FACEBOOK_APP_ACCESS_TOKEN ) https://developers.facebook.com/tools/accesstoken/ or from social_user.extra_data['access_token'] Then with this token you can send the requests you need, for example, this code gets all the friends of the authenticated user

Session value missing after redirect with django python-social-auth

泪湿孤枕 提交于 2019-11-29 11:47:58
I am working on a django project using python-social-auth to do authentication with facebook. I am running the django server on localhost and have facebook set up with my application to redirect to http://127.0.0.1:8000/complete/facebook/ , which begins python-social-auth's pipeline to authenticate a user. I am using postgres as my database. When this method is called and tries to authenticate, it cannot find information on the session. From https://github.com/omab/python-social-auth/issues/534 , I think the sessionid cookie is being overwritten. If I send the facebook redirect to a different

python-social-auth with Django: ImportError: No module named 'social_django'

孤街浪徒 提交于 2019-11-29 09:31:23
ALL packages installed!! Hi, I'm using python 3.5 Django==1.10 I installed Python-social-auth executed the command Python manage.py transfer error received! Traceback (most recent call last): File "manage.py", line 22, in execute_from_command_line(sys.argv) File "/home/berluskuni/web_project/exprender/.exprender/lib64/python3.5/site-packages/django /core/management/init.py", line 367, in execute_from_command_line utility.execute() File "/home/berluskuni/web_project/exprender/.exprender/lib64/python3.5/site-packages/django/core/management/init.py", line 341, in execute django.setup() File "

Session value missing after redirect with django python-social-auth

喜夏-厌秋 提交于 2019-11-28 05:30:16
问题 I am working on a django project using python-social-auth to do authentication with facebook. I am running the django server on localhost and have facebook set up with my application to redirect to http://127.0.0.1:8000/complete/facebook/, which begins python-social-auth's pipeline to authenticate a user. I am using postgres as my database. When this method is called and tries to authenticate, it cannot find information on the session. From https://github.com/omab/python-social-auth/issues

python-social-auth with Django: ImportError: No module named 'social_django'

扶醉桌前 提交于 2019-11-28 02:56:06
问题 ALL packages installed!! Hi, I'm using python 3.5 Django==1.10 I installed Python-social-auth executed the command Python manage.py transfer error received! Traceback (most recent call last): File "manage.py", line 22, in execute_from_command_line(sys.argv) File "/home/berluskuni/web_project/exprender/.exprender/lib64/python3.5/site-packages/django /core/management/init.py", line 367, in execute_from_command_line utility.execute() File "/home/berluskuni/web_project/exprender/.exprender/lib64

python-social-auth AuthCanceled exception

∥☆過路亽.° 提交于 2019-11-27 15:38:28
问题 I'm using python-social-auth in my Django application for authentication via Facebook. But when a user tries to login and when it's been refirected to Facebook app page clicks on "Cancel" button, appears the following exception: ERROR 2014-01-03 15:32:15,308 base :: Internal Server Error: /complete/facebook/ Traceback (most recent call last): File "/home/vera/virtualenv/myapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 114, in get_response response = wrapped_callback

How can I use Django OAuth Toolkit with Python Social Auth?

☆樱花仙子☆ 提交于 2019-11-26 23:21:24
I'm building an API using Django Rest Framework. Later this API is supposed to be consumed by iOS and Android devices. I want to allow my users to sign-up with oauth2-providers like Facebook and Google. In this case, they shouldn't have to create an account with my platform at all. But users should also be able to sign-up when not having a Facebook/Google account, for which I'm using django-oauth-toolkit, so I have my own oauth2-provider. For external providers I'm using python-social-auth, which works fine and automatically creates the user objects. I want the clients to authenticate by using

How can I use Django OAuth Toolkit with Python Social Auth?

帅比萌擦擦* 提交于 2019-11-26 09:15:05
问题 I\'m building an API using Django Rest Framework. Later this API is supposed to be consumed by iOS and Android devices. I want to allow my users to sign-up with oauth2-providers like Facebook and Google. In this case, they shouldn\'t have to create an account with my platform at all. But users should also be able to sign-up when not having a Facebook/Google account, for which I\'m using django-oauth-toolkit, so I have my own oauth2-provider. For external providers I\'m using python-social