Using Facebook Login on Windows Phone 8.1

3

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.

    
asked by anonymous 28.01.2016 / 20:14

1 answer

1

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

    
19.02.2016 / 16:00