2011-05-21 28 views

回答

0
FbGraphResponse *fb_graph_response = [fbGraph doGraphGet:@"me/checkins" withGetVars:nil]; 
NSLog(@"getMeButtonPressed: %@", fb_graph_response.htmlResponse); 

//parse our json 
SBJSON *parser = [[SBJSON alloc] init]; 
NSMutableArray *facebook_response =(NSMutableArray *)[fb_graph_response.htmlResponse JSONValue];//[parser objectWithString:fb_graph_response.htmlResponse error:nil]; 
[parser release]; 

NSMutableArray *feed =(NSMutableArray *) [facebook_response valueForKey:@"data"]; 
NSLog(@"%@",feed); 

在進料,你可以找到你在.. 檢查如果你得到了「零」的數據,這意味着你還沒有在任何地方檢查,所以你必須先簽入的地方傑森數據使用您的個人資料,並FB.but如果它是未來零在這種情況下只有

,我使用這個全球化志願服務青年的例子有些地方: - https://github.com/reallylongaddress/iPhone-Facebook-Graph-API

所以其調整按您的要求

+0

感謝爲了回答,但你的答案是得到所有帖子都與登記入住有關,或者它正在提供設施以執行「登記」(Facebook地點) – ios 2011-05-21 12:37:07

+0

是的......您獲得所有帖子......並且如果您想使用登記入住......則使用後檢查在方法中 – 2011-05-23 05:28:15

相關問題