2013-05-10 61 views

回答

2

您可以使用FB Open Graph和SLRequests輕鬆獲取所有用戶的組。確保您已經通過身份驗證,然後撥打電話:

NSURL *groups = [NSURL URLWithString:@"https://graph.facebook.com/me/groups"]; 

SLRequest *retrieveGroups = [SLRequest requestForServiceType:SLServiceTypeFacebook requestMethod:SLRequestMethodGET URL:groups parameters:nil]; 

[retrieveGroups performRequestWithHandler:^(NSData *responseData, NSHTTPURLResponse *urlResponse, NSError *error) 
{ 
//responseData contains your groups 
}];