How to make Facebook Login possible in Django app ?

Summary; https://github.com/mlavin/django-all-access https://github.com/pennersr/django-allauth https://github.com/omab/django-social-auth https://github.com/uswaretech/Django-Socialauth https://github.com/hiidef/oauth2app https://github.com/timetric/django-oauth https://github.com/daaku/django-oauth-consumer https://github.com/eldarion/django-oauth-access https://github.com/dgouldin/python-oauth2 https://github.com/henriklied/django-twitter-oauth https://launchpad.net/django-openid-auth https://www.djangopackages.com/grids/g/oauth/ http://peterhudec.github.io/authomatic/ django-all-access django-all-access is a reusable application for user registration and authentication from OAuth 1.0 and OAuth 2.0 providers such as Twitter and Facebook. The goal of this project is to make it easy to create your own workflows for authenticating with … Read more

How to extend access token validity since offline_access deprecation

Edit (August 14th 2012): A week ago the official Facebook PHP SDK was updated. The function name was changed to setExtendedAccessToken, and it was decided we actually needed to destroy the session afterwards, to remove the risk of having two active sessions. Also, the function no longer actually returns the token, but instead stores it … Read more

Facebook OAuth: custom callback_uri parameters

I figured out the answer; rather than adding additional parameters to the redirect URL, you can add a state parameter to the request to https://www.facebook.com/dialog/oauth: https://www.facebook.com/dialog/oauth ?client_id=MY_CLIENT_ID &scope=MY_SCOPE &redirect_uri=http%3A%2F%2Fwww.mysite.com%2Foauth_callback%3Ffoo%3Dbar &state=6234 That state parameter is then passed to the callback URL.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)