Error Signing In with facebook on IOS

Hi

I have the login with Facebook working perfectly on Android and in the Editor, but when I try iOS I get [Authentication]: Request failed: 401, {“detail”:“invalid token”,“details”:,“status”:401,“title”:“PERMISSION_DENIED”}, request-id: d61e06f9-c4d5-4670-bd7f-fad219ae8c63

I followed all tutorials, checked and double-checked the plugin and Facebook app configuration, if I sign in while running on the editor it works without problem, if I build an apk and run it on an Android device it works perfectly. But on an iOS device, it keeps failing.

Any ideas?

2 Likes

I have same problem. My Facebook app have App type: Consumer.

Mine as well is type: consumer

On player settings: code stripping = minimal… that worked for me

2 Likes

I just wanted to call this out, as we’ve been getting increasing number of reports about code stripping in Xcode causing problems for builds on iOS, resulting in weird errors (and not just for Facebook Sign In).

I suspect there maybe have been a recent change in behaviour to make code stripping more aggressive.

We’ve previously tackled this on case by case basis with specific authentication flows but are looking at what improvements we can make across the Authentication SDK to try and prevent this from happening.

Setting code stripping to minimal does seem to help though!

1 Like