Forum Xamarin.Android

Xamarin Android with C# ,Facebook Integration

I have used below code in my app for Facebook Login

//ProgressBar mProgressBar;
ICallbackManager cbFactory;
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);

        FacebookSdk.SdkInitialize(this.ApplicationContext);
        cbFactory = CallbackManagerFactory.Create();
        // Set our view from the "main" layout resource
        SetContentView(Resource.Layout.Main);
    }

    protected override void OnActivityResult(int requestCode, [GeneratedEnum] Result resultCode, Intent data)
    {
        base.OnActivityResult(requestCode, resultCode, data);

        cbFactory.OnActivityResult(requestCode, (int)resultCode, data);
    }

All this working fine, Now i need to get Access Token to make further Graph API call but AccessToken.CurrentAccessToke is coming null.

How i can get access token of logged in user ?

Tagged:
Sign In or Register to comment.