python-social-auth AuthCanceled exception

python-social-auth is a newer, derived version of django-social-auth. AlexYar’s answer can be slightly modified to work with python-social-auth by modify settings.py with following changes: Add a middleware to handle the SocialAuthException MIDDLEWARE_CLASSES += ( ‘social.apps.django_app.middleware.SocialAuthExceptionMiddleware’, ) URL to redirect to, when an exception occurred SOCIAL_AUTH_LOGIN_ERROR_URL = “https://stackoverflow.com/” Note that you also need to set DEBUG … Read more

When to request permissions with Facebook’s new Android SDK 3.0?

I was able to get it to work. It’s a modification of your Version 2 sample. The link Jesse provided also helped a ton. Here is the code I run through when authenticating a user: private void signInWithFacebook() { mSessionTracker = new SessionTracker(getBaseContext(), new StatusCallback() { @Override public void call(Session session, SessionState state, Exception exception) … Read more

How should a Facebook user access token be consumed on the server-side?

From what you describe I’d suggest to use a server-side login flow as described in https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow/v2.2 so that the token is already on your server, and doesn’t need to be passed from the client. If you’re using non-encrypted connections, this could be a security risk (e.g. for man-in-the-middle attacks). The steps would be: (1) Logging … Read more

tech