Facebook App Users List -


i new facebook apis. want list of friends have installed app. (the idea being can start game them).

this gives list of friends:

fb.api('/me/friends', ... 

this gives app info:

fb.api('/myappid', ... 

what want "my friends have app installed"

i thought might this:

fb.api('/myappid/accounts', ... 

i hoping @ least give me developers, administrators or testers, no such luck. http://developers.facebook.com/docs/test_users/ http://developers.facebook.com/docs/applicationsecurity/

my feeling perhaps have use fql construst query says like

(psuedocode) select my_friends uid in (     select uid     app_users     appid = myappid ) 

any advice appreciated.

note, have seen post: facebook app: retrieve list of ids of application's users

i keeping local list of facebook user's ids belong site, , able achieve goal doing following, sure there must better way:

$facebookfriendids = array(); $friends = $this->facebook->api('/me/friends'); foreach ($friends['data'] $friend) {     $facebookfriendids[] = $friend['id']; }  $this->friends = doctrine_core::gettable('user')->createquery()     ->wherein('fb_user_id', $facebookfriendids)     ->execute(); 

this believe fql query

$facebook->api(array('method' => 'fql.query', 'query' => "select uid user is_app_user = '1' , uid in (select uid2 friend uid1 = '" . $user_id . "');"));

(i use java , js apis syntax may not correct)

the documentation user , friend queries here:

http://developers.facebook.com/docs/reference/fql/user/

http://developers.facebook.com/docs/reference/fql/friend/


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -