I'm trying to mount Facebook login to an app so that it works using the app or website according to the tutorial:
It has a similar question, but that does not answer me by limiting the solution to the application only as I understood it: Using Facebook Login on Windows Phone 8.1 1
I just added the xml file to my Facebook application id. I also added the protocol and put this code in my main code:
protected override void OnActivated(IActivatedEventArgs args)
{
base.OnActivated(args);
// You can setup a event handler to be called back when the authentication has finished
Session.OnFacebookAuthenticationFinished += OnFacebookAuthenticationFinished;
var protocolArgs = args as ProtocolActivatedEventArgs;
LifecycleHelper.FacebookAuthenticationReceived(protocolArgs);
}
private void OnFacebookAuthenticationFinished(AccessTokenData session)
{
// here the authentication succeeded callback will be received.
// put your login logic here
}
However, trying to add Facebook.client I could not and probably because of this, the above functions are not being recognized so I can override.
Does anyone know what might be missing? How do you complete this goal?