I'm trying to implement facebook authentication in a Parse.com enabled .NET desktop application. I've followed the instuctions in the parse .NET documentation but unfortunatelly I keep getting a "Invalid App ID: id" in the WebBrowser control required by the authentication process.
The Facebook app id and secret have been added to my parse app settings. The facebook app has been made "available to the public", "Native/Desktop" app is enabled and the http://ift.tt/1Ot3CpP call also seems to have a valid response.
The C# code is quite straightforward:
ParseClient.Initialize("myappid", "mydotnetkey");
ParseFacebookUtils.Initialize("627062910726940"); //
public async Task<bool> LogInOrRegisterAsync()
{
try
{
await ParseFacebookUtils.LogInAsync(WebBrowser, _facebookPermissions);
return true;
}
catch (Exception ex)
{
Debug.WriteLine(ex.Message);
return false;
}
}
Aucun commentaire:
Enregistrer un commentaire