2
I’m trying to build Facebook login into an app so it works using the app or website according to the tutorial:
http://facebooksdk.net/docs/windows/config/
There is a similar question, but that does not suit me for limiting the solution only to the application for what I understood: Using Facebook Login on Windows Phone 8.1 1
I just added the xml file with my application id on Facebook. 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 didn’t succeed and probably why, the above functions are not being recognized so I can override.
Does anyone know what may be missing? How to complete this goal?