ashishkummar / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

failed to retrive user and freind list with non developer or admin user #470

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi ,, i develop simple facebook game using action script 3 ,, i have an issue

-- first when i logged with Admin of the game or developer user  i can get my 
profile and my friend list . and if i login to facebook with other users i 
failed to retrieve user and friends O_O 
is that permission issue or what ??

i use  GraphAPI_Web_1_8_1

my code :

public function FaceBookData()
        {
            Facebook.init(APP_ID, HandleFacebookConnect);
        }

        private function HandleFacebookConnect(success:Object, fail:Object):void
        {           

            if(success)
            {
                accessToken =params["access_token"] = Facebook.getAuthResponse().accessToken;
                Facebook.api("v2.0/me/invitable_friends", RetrievedFriends, params);
                Facebook.api("v2.0/me", RetrievedMe, params);
            }
            else
            {
                Facebook.login(HandleFacebookConnect,{perms: 'public_profile,email,user_friends'});
            }
        }

Original issue reported on code.google.com by mo3az...@gmail.com on 10 Jul 2014 at 2:12