Open GameKit28 opened 3 weeks ago
This may also be relevant, the App type is listed as None
.
I thought I recalled reading somewhere that only certain App types are supported by the SDK, but now I'm unable to find that reference.
I've also tested the manual login flow described on this page: https://developers.facebook.com/docs/facebook-login/guides/advanced/manual-flow
I used the following HTTP request and a valid token was returned in the URI.
https://facebook.com/v20.0/dialog/oauth?client_id=REDACTED&redirect_uri=https%3A%2F%2Fwww.facebook.com%2Fconnect%2Flogin_success.html&state=28&response_type=token
I was successfully able to use the token to make a GraphQL request for my first_name
.
Debugging the token through this tool gave me the information below, which all looks accurate: https://developers.facebook.com/tools/debug/accesstoken/
The Facebook SDK for Unity continues to give me this error: ERROR: Failed to start login flow,InnerErrorCode: 190,InnerErrorMessage: Error validating application. Invalid application ID.,InnerErrorSubcode: 0,InnerErrorTraceId:
Checklist
Environment
I'm using the Unity Editor on Windows using the WindowsExample.unity scene. The same error occurs within a Windows build and when I call
FB.LogInWithReadPermissions
directly. I've added the App'sApp Name
,Facebook App ID
, andClient Token
to theFacebook Settings
scriptable object inSDK\Resources\
. I've also tried with a new empty Unity project with only the Facebook SDK installed.2021.3.39f1
. I've also tried2022.3.24f
(2022 LTS).17.0.1
Windows 11 Pro (Windows, Mac, Linux)
version22631.3737
Goals
Greetings! I'm trying to use the Facebook SDK for Unity to authenticate a Facebook user with my client's established Facebook App for retrieval of user's name, profile picture, and email (for support purposes).
Expected Results
I expect the call to
FB.LogInWithReadPermissions
to return successfully, with a valid access token that I can then pass to Unity Gaming Services authentication or use to retrieve the user's info through GraphQL requests.Actual Results
The callback returns with the
ILoginResult result
error
value asERROR: Failed to start login flow,InnerErrorCode: 190,InnerErrorMessage: Error validating application. Invalid application ID.,InnerErrorSubcode: 0,InnerErrorTraceId:
. (along with an InnerErrorTraceId).Steps to Reproduce
Code Samples & Details
I suspect the issues lies with my configuration of the Facebook App on the Facebook Developer page, but all the settings appear correct to my knowledge.
(The
pages_user_timezone
was just for testing purposes) (I'm planning on addressing the iOS and Android SDK versions later)Of particular note, this Facebook App was last updated in 2014 and the game was last released in 2014. My work for this client includes updating the game for re-release.
A few other things I've tried:
https://graph.facebook.com/oauth/access_token?client_id=APP_ID &client_secret=APP_SECRET&grant_type=client_credentials
replacing the values, I get a response that looks correct.{"access_token":"REDACTED","token_type":"bearer"}
.As I write this up, I'm noticing the Verification required notice next to the
public_profile
andemail
permissions, along with the message below. When I make the call withpublic_profile
,email
or the defaultgaming_profile
, I receive the same error. When I call it with onlypages_user_timezone
requested, I receive this errorError: Requested value 'PagesUserTimezone' was not found.
but I suspect this is a red herring.Thank you in advance for any and all help you can provide!