return name from FB callback
i need return name from callback
public string FBLogin() {
FB.LogInWithReadPermissions(null,delegate(ILoginResult result) {
if (FB.IsLoggedIn) {
token = result.AccessToken;
FB.API("/me?fields=first_name,last_name,id",HttpMethod.GET,delegate (IGraphResult r) {
return r.ResultDictionary ["first_name"].ToString();
});
}
});
Other programmer will use my function, and i need return him name/ But i dont know how? Can you help me pls?!
Comment
Your answer
Follow this Question
Related Questions
How to create a circular sprite? (Fb profile pic) 2 Answers
i want an app to play videos directly off youtube. can anyone help me with that? 0 Answers
FB.LogInWithPublishPermissions forces stop when there is no internet. 0 Answers
Unity Facebook SDK v7.9.0 totally doesn't work on iOS (Unity version 5.3.2) 1 Answer
How to deploy my unity game on facebook? 0 Answers