doorman
doorman

Reputation: 16959

Passing AccessToken into Xamarin Facebook iOS SDK

I am retrieving the FB access token from another Xamarin login SDK I am using. Is it possible to set the access token manually and skipping the login view in the Xamarin Facebook iOS SDK api?

[UPDATE]I am using the FB Invite feature like this and I am not sure how where to specify the access token if I already have it.

        var content = new AppInviteContent() { AppLinkURL = appLinkUrl, PreviewImageURL = previewImageUrl };
        AppInviteDialog.Show(content, this);

Upvotes: 0

Views: 230

Answers (1)

Shalva Avanashvili
Shalva Avanashvili

Reputation: 899

since the Facebook User Access Tokens are portable link here, I think you can handle the facebook button click, where you skip the fb login.

for example.

void FbButtonClicked (object sender, EventArgs e)
{
    if(iHaveAccesToken)
        MissFbLogin();
    else
    _manager.LogInWithReadPermissions (EXTENDED_PERMISSIONS, (res, err) => FbLoginHandler (res, err));
}

And in your viewcontrollers send the graph request via gained AccesToken

Upvotes: 1

Related Questions