2012-05-23 60 views
2

我採取的iPhone應用程序,我想獲取的來自Facebook誰已經安裝了應用程序在其設備的朋友列表iPhone應用程序:發現誰已經安裝的應用程序到他們的設備的Facebook好友

的,我要寄給要求如下

AppDelegate *appDelegate=[[UIApplication sharedApplication] delegate]; 
    NSMutableDictionary*params = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"picture,id,name,link,gender,last_name,first_name",@"fields", nil]; 
    [[appDelegate facebook] requestWithMethodName:@"friends.getAppUsers" andParams:params andHttpMethod:@"GET" andDelegate:self]; 

但在應對炎給我的只有誰已經安裝的應用程序到他們的設備作爲

xxxxxxxxxxxxxx1, 
    xxxxxxxxxxxxxx2, 
    xxxxxxxxxxxxxx3 

但如何用戶的Facebook ID下面所有的朋友誰正在使用的應用程序

{ 
    "first_name" = abc; 
    gender = male; 
    id = 10000xxxxxxxxxxxx; 
    "last_name" = xyz; 
    link = "http://www.facebook.com/profile.php?id=10000xxxxxxxxxxxx"; 
    name = "abc xyz"; 
    picture = "http://profile.ak.fbcdn.net/static-ak/rsrc.php/v2/yo/r/UlIqmHJn-SK.gif";   
} 

我怎樣才能做到這一點得到迴應?

請幫助和建議

謝謝。

回答

1

使用FQL我能得到查詢響應與參數is_app_use

NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys: 
           @"select uid, name,pic_small, is_app_user from user where uid in (select uid2 from friend where uid1=me()) and is_app_user=1", @"query", 
           nil]; 
[[APPDELEGATE facebook ] requestWithMethodName: @"fql.query" 
             andParams: params 
            andHttpMethod: @"POST" 
            andDelegate: self]; 
相關問題