Facebook Login doesnt work on Android

#1

Facebook Login is not working on Android, with iOS Im having no problems. (No standalone apps)

const { type, token } = await Expo.Facebook.logInWithReadPermissionsAsync('myappid', {
      permissions: ['public_profile']
});

This fires following error:

Any ideas?

#2

Hi! Sorry about that. Do you think you could share a minimal reproduction of this problem using Snack? It’ll be much easier to figure out what’s going wrong if I can try it myself. Thanks!

2 Likes
#3

Well after hours trying to find the issue, the problem is basically related to the app permisions. I hope I can help some people in case anyone faces such an error.
According to the expo docs the behaviour by defaulf of logInWithReadPermissionsAsync is web .

But thats not completely right, since android uses the native app for the facebook login. That was basically the problem, the phone I was using had Facebook with an account ready on it.

What I did to solve it : Add the account as a tester in the Facebook Developers Dashboard.

1 Like
closed #4

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.