[Solved] how do i get gender from facebook public profile Facebook IOS Swift SDK

You can get these details using Graph api. Check this link https://developers.facebook.com/docs/graph-api/reference/user let request = FBSDKGraphRequest(graphPath: “\(user-id)”, parameters: [“fields” : “id,name,email,birthday,gender,hometown” ], httpMethod: “GET”) request?.start(completionHandler: { (connection, result, error) in // Handle the result }) solved how do i get gender from facebook public profile Facebook IOS Swift SDK

[Solved] Posting a comment on friend’s Facebook wall with an iOS SDK [closed]

NSString *urlString = [NSString stringWithFormat:@”https://graph.facebook.com/YOUR_FRIEND_FB_ID/photos?access_token=%@“, self.accessToken]; UIImage * pic = [UIImage imageNamed:@”green-background.png”]; NSData *picData = UIImageJPEGRepresentation(pic, 1); NSURL *url = [NSURL URLWithString:urlString]; ASIFormDataRequest *newRequest = [ASIFormDataRequest requestWithURL:url]; [newRequest setPostValue:@”This is Sample Text” forKey:@”message”]; [newRequest setData:picData forKey:@”data”]; [newRequest setPostValue:self.accessToken forKey:@”access_token”]; [newRequest setDelegate:self]; [newRequest setDidFinishSelector:@selector(postToWallFinished:)]; [newRequest startAsynchronous]; solved Posting a comment on friend’s Facebook wall with an … Read more