ios - how to retrieve Facebook friend's group name? -


facebook sdk 3.+ has requestformyfriends, , return fbgraphuser doesn't have group name property, there way groups belongs user?

you grab of user's groups using fb open graph , slrequests. ensure you've authenticated , make call this:

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 groups  }]; 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -