Thursday, November 3, 2022

[FIXED] How To Get User Name From Facebook Unity SDK

Issue

I am new in unity and trying to integrate Facebook unity SDK. But i am not able to find current logged-in user name. It will return only userId and accessToken. How to get login name after FB.Login("email")


Solution

After you login, you can get the name with:

FB.API("me?fields=name", Facebook.HttpMethod.GET, <your callback here>);


Answered By - Brian Jew
Answer Checked By - Robin (PHPFixing Admin)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.