I’m using Facebook SDK 7.16.0 and the target iOS version is 13.0. I’ve created a fb app which is still in development mode, used the fb app id and client token and followed all the steps from the fb guide to set up the login. I tested it in the editor, used the access token and it’s working.
Now, when I wanted to test it on the iPad, I created a build. Unfortunately SDK 7.20.0 wasn’t working as it had a bug. So, I downgraded to 7.16. No bugs.
When I hit the login button, it threw the following error.
-canOpenURL: failed for URL: “fbauth2:/” - error: “The operation
couldn’t be completed. (OSStatus error
-10814.)”
So, I installed the Facebook App and tried again. The login doesn’t bring up the app or safari to login via facebook and instead in the result IsCancelled is true. Why? What am I missing?
FB.LogInWithReadPermissions(new List<string>() { "public_profile", "email", "user_friends" },
delegate(ILoginResult result)
{
if (result == null)
{
Debug.Log("result empty.");
}
if (!string.IsNullOrEmpty(result.Error))
{
Debug.Log("error -" + result.Error);
}
else if (result.Cancelled)
{
Debug.Log("cancelled");
}
else if (!string.IsNullOrEmpty(result.RawResult))
{
Debug.Log("success - check result");
}
}
);