Facebook sdk get friend only return null
I'm try to build two test user already be the friend and login App.
My login function
FB.LogInWithReadPermissions(new List() { "public_profile", "email", "user_friends" }, this.EventHandleLogin);
my get friend funcion
FB.API("/me/friends", HttpMethod.GET, FriendCallBack); public void FriendCallBack(IGraphResult result) { IDictionary<string, object> data = result.ResultDictionary; List<object> friends = (List<object>)data["data"]; Debug.LogError("New Friend Back:" + friends.Count); foreach (object obj in friends) { Dictionary<string, object> dictio = (Dictionary<string, object>)obj; Debug.LogError(dictio["name"]+","+dictio["id"]); } }
Hey, did you find a solution to this problem? I'm getting empty friends data too.
Your answer
Follow this Question
Related Questions
I can't see anything on the, Android Build Facebook Settings, tab. 0 Answers
Google Play and Facebook leaderboards 0 Answers
Facebook Invite and track 0 Answers
Facebook sharing on iOS with Unity game 0 Answers