I am developing a Windows Phone 8.1 application and it is necessary to use the Facebook login. Would anyone have an example of how to do this login?
Thank you in advance.
I am developing a Windows Phone 8.1 application and it is necessary to use the Facebook login. Would anyone have an example of how to do this login?
Thank you in advance.
To call facebook app you can do this:
string url = string.Format("fbconnect://authorize?client_id={0}&scope={1}&redirect_uri=msft-{2}:authorizeByFacebook", ConfigConstants.FacebookAppID(), ConfigConstants.FacebookPermitions(), ConfigConstants.AppID().Replace("-", ""));
await Windows.System.Launcher.LaunchUriAsync(new Uri(url));
Then in the Manifest (Where it says prod_id gets your ProductID without the "-")
<Extensions>
<Protocol Name="msft-PROD_ID" NavUriFragment="encodedLaunchUri=%s" TaskID="_default" />
</Extensions>
When the app starts again you can see the protocols and then take the facebook token!
Hope it helps