fbrequest-form

FQL query to fetch a user's Facebook friend's gender PLUS meeting_sex

狂风中的少年 提交于 2020-01-04 07:46:13
问题 Not quite as racy as it sounds - I'm using the below code to get a user's male or female friends only and it works fine. However, I also want to check their 'meeting_sex' which is a list of the genders a user's friend is interested in meeting, i.e. male, female or both. (Described here) The meeting_sex requires the friends_relationship_details permission which I've added to the graph API explorer, but my output looks like this: "data": [ { "name": "ABCDEF", "pic_square": "https://abcdefg.jpg"

How can I retrieve friend's picture through FBRequest in swift

时光总嘲笑我的痴心妄想 提交于 2019-12-13 01:29:38
问题 var friendRQ: FBRequest = FBRequest(forGraphPath: "me/taggable_friends?fields=name,picture.width(66).height(66)") friendRQ.startWithCompletionHandler({ (Connection, results, error) -> Void in self.FBData = results.objectForKey("data") as NSMutableArray println(self.FBData) }) I have no problem on retrieve the name, but picture. FBData.picture reutrns a NSURL picture = { data = { height = 68; "is_silhouette" = 0; url = "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-xpa1/v/t1.0-1/c9.0.68.68