question

ariellarias avatar image
ariellarias asked

LinkFacebookAccount ForceLink

Hello!

What's the correct way to call a LinkFacebookAccount with the parameter ForceLink = true in Unity?

I know is mainly a syntax question but I coudn't manage to make it work...

Thanks!

apisFriends
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

It's the same format as with other calls - create the LinkFacebookAccountRequest object, setting the token and ForceLink parameters. Something like this:

var request = new LinkFacebookAccountRequest
{
  AccessToken = "{your access token}",
  ForceLink = true
};
PlayFabClientAPI.LinkFacebookAccount(request, {your success callback}, {your error callback}, {your context, if any});
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ariellarias avatar image ariellarias commented ·

Thanks! It's working now, my problem was that I was using an outdated version of the SDK where ForceLink variable was not defined.. my bad.

Thanks again!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.