Hey everyone,
I’ve spent the past 6 hours trying to implement Facebook log in and nothing works.
I followed the steps on the Docs Facebook
Downloaded the Facebook Unity SDK, created a Facebook App of type “Facebook Login” and enabled “Facebook Gaming Login” and enabled “Log in from Device”
With that I was able to log in using the WindowsExample demo scene included in the Facebook Unity SDK.
However then I could not log in with the Unity Authentication through AuthenticationService.Instance.SignInWithFacebookAsync(token); the result was “Request failed: 401, {“title”:“PERMISSION_DENIED”,“detail”:“unable to validate token”,“details”:[ ],“status”:401}”
After searching I found out that apparently Unity Auth only works with Facebook App type “Consumer” and not “Facebook Login”, so then I created another Facebook App, this time I made the type “Consumer” except now I cannot log in using the WindowsExample demo scene, I get the error “Error validating application. Invalid application ID.”
Trying to log in with Unity Auth simply returns the same error message and then “[Facebook Login] User cancelled login”
I even tried requesting Advanced Access to “public_profile” which required me to create and validate a Business Account, but even after that nothing works.
I’m really at a loss, no idea what I’m doing wrong.
The only thing I can think of is the Facebook Unity SDK only works with “Facebook Login” and not with “Consumer”, but if that’s the case how come the Docs say to use that method?
I’m going to try doing an HTTP request myself instead of using the SDK.