示例#1
0
        // Request the players friends.
        // As per FB API v2.0 You can only request friends that have installed and logged in on the app,
        // you can no longer poll all the players friends.
        // https://developers.facebook.com/bugs/1502515636638396/
        public void PopulateFriends()
        {
            Debug.Log("Populate Friends.");
#if !UNITY_EDITOR && UNITY_WINRT_8_1
            if (FBWin.IsLoggedIn)
            {
                // Get the friends
                FBWin.API("/me/friends", HttpMethod.GET, GetFriendsCallback);
            }
#endif
        }