romkij
started a topic on Tue, 01 September 2015 at 2:35 AM
Hello!
Why LinkFacebookAccount when error, always return HttpCode 400, but error message is different?
Thank you for support! :)
romkij
started a topic on Tue, 01 September 2015 at 2:35 AM
Hello!
Why LinkFacebookAccount when error, always return HttpCode 400, but error message is different?
Thank you for support! :)
5 Comments
flekoun said on Tue, 01 September 2015 at 7:04 AM
Yes, facebook login also not working! Please fix this ASAP as our players cannot login to the game! Same error : The requested feature has not been enabled for this title. HttpCode: 400
Brendan Vanous said on Tue, 01 September 2015 at 12:08 PM
Having reviewed the titles, these are two distinct issues.
@flekoun: We'll continue with out follow-up in the other thread we have with you, for your title. Glad to hear everything's working fine for you at this point, though.
@romkji: Can you please send us the specifics of your test (PlayFab ID, the call being made, and the returned data)?
Brendan
romkij said on Tue, 01 September 2015 at 12:54 PM
PlayFab ID where facebook linked: E9A693DD67DCA8BE
PlayFab ID where facebook link must give error: A12DA3C254AA9037
Link code:
public void LinkWithFacebookAccount(string accessToken, Action onSuccess, Action<CloudPlatformError> onError)
{
PlayFabClientAPI.LinkFacebookAccount(new LinkFacebookAccountRequest
{
AccessToken = accessToken
}, (LinkFacebookAccountResult result) =>
{
onSuccess.Invoke();
}, (PlayFabError error) => {
Debug.Log("Error! Code: " + error.HttpCode + "; Msg: " + error.ErrorMessage);
});//(PlayFabError error) => OnError(error, onError));
}
returned data is : "Error! Code: 400; Msg: That account is already linked to a different user"
And further, when i request LinkFacebookAccount on account when this facebook already linked (E9A693DD67DCA8BE), i don't get error with code 1011 (from docs) - "account already linked".
Brendan Vanous said on Tue, 01 September 2015 at 6:42 PM
It's actually the error code you want to check, rather than the HttpCode - so in which case, error.Error. That will contain the PlayFab error code for the issue. In this case, it's 1012 (LinkedAccountAlreadyClaimed). The AccountAlreadyLinked (1011) error occurs when you attempt to link a different external account (Facebook, in this case) to a PlayFab account which is already linked to an external account of the same type.
Brendan
romkij said on Wed, 02 September 2015 at 4:47 AM
Thank you for explanation!
No one has followed this question yet.