AuthFailed at /complete/facebook/ issue

80 views
Skip to first unread message

Malhar Vora

unread,
Apr 9, 2015, 1:08:33 PM4/9/15
to django-so...@googlegroups.com
 
     Hello all,


     I am a newbie Python-Django developer. I am integrating FaceBook integration using Django-social-auth.
 
     I am getting following exception.
    Authentication failed: There was an error authenticating the app

     I have checked FB APP ID and secrets

Here are my settings.py details set for django-social-auth

AUTHENTICATION_BACKENDS = (
'social_auth.backends.facebook.FacebookBackend', # For django-social-auth
'django.contrib.auth.backends.ModelBackend',
)
SOCIAL_AUTH_ENABLED_BACKENDS = ('facebook',)
FACEBOOK_APP_ID = 'XPZ'
FACEBOOK_API_SECRET = 'PQR'
FACEBOOK_EXTENDED_PERMISSIONS = ['email']
SESSION_SERIALIZER='django.contrib.sessions.serializers.PickleSerializer'

TEMPLATE_CONTEXT_PROCESSORS = (
"django.contrib.auth.context_processors.auth",
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media",
"django.core.context_processors.request",
'social_auth.context_processors.social_auth_by_type_backends',
)

PROJECT_APPS = (
'app',
'game',
'gameplayer',
'gamesquare',
'social_auth',
)

Following are urls.py settings
urlpatterns += patterns('', url(r'', include('social_auth.urls')),)

Apart from above mentioned settings, I have not set anything else for django-social-auth.

Need help to solve this exception.


Regards,

Malhar Vora


Nilesh Londhe

unread,
Apr 20, 2015, 11:48:25 PM4/20/15
to django-so...@googlegroups.com

No need to write custom code for openedx just use this segment in your server-vars.yml and you are done with google, linkedin and facebook.


EDXAPP_ENABLE_THIRD_PARTY_AUTH: true
EDXAPP_THIRD_PARTY_AUTH:
  Google:
    SOCIAL_AUTH_GOOGLE_OAUTH2_KEY: 34234245345345-dasdwewerweterr345233e.apps.googleusercontent.com
    SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET: hbj2hb45k3neknsihifusndkfjnsdf
  LinkedIn:
    SOCIAL_AUTH_LINKEDIN_OAUTH2_KEY: 87y8zhfgkdjfngkjwn4k56jn456
    SOCIAL_AUTH_LINKEDIN_OAUTH2_SECRET: nciisnids7y8as7he8e5h3l4
  Facebook:
    SOCIAL_AUTH_FACEBOOK_KEY: 23423434556456456
    SOCIAL_AUTH_FACEBOOK_SECRET: kni734kjnksd7hifun3wkjnw5lj345

Nilesh Londhe

unread,
Apr 20, 2015, 11:49:14 PM4/20/15
to django-so...@googlegroups.com
oops. wrong forum. sorry about that.
Reply all
Reply to author
Forward
0 new messages