question

Cadrick Loh avatar image
Cadrick Loh asked

How to know whether a user has linked to a certain service

How do I know whether a user has already linked to Facebook account?

So that I can display proper UI respectively.
For example:
If user hasn't link to Facebook, I'll show "Login to Facebook" button

if user has already linked to Facebook, I'll show "Logout from Facebook" button

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

Once you've signed the user in using any authentication method, you can get information on all the user's linked authentication methods via GetAccountInfo.

10 |1200

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

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.