I am using latest Facebook SDK wanted to get post id after sharing image or text on Facebook. Thanks in Advance.
Asked
Active
Viewed 276 times
-2
-
Please provide more details. – ljk321 May 02 '15 at 08:41
-
Working perfectlay solved the issue now :NSMutableDictionary* photosParams = [NSMutableDictionary dictionaryWithObjectsAndKeys: imgSource,@"source",strMessage,@"message",nil][[[FBSDKGraphRequest alloc] initWithGraphPath:@"me/photos" parameters:photosParams HTTPMethod:@"POST"] startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { if ([error.userInfo[FBSDKGraphRequestErrorGraphErrorCode] isEqual:@200]) { } }]; – user1220945 May 02 '15 at 08:47
2 Answers
1
After posting on facebook successfully . In your
-(void)request:(FBRequest *)request didLoad:(id)result
method you will get the result.. Get the results. You will get the post_id if you are using FB SSO

Arpit Lokwani
- 127
- 7
0
you can try did this in three steps
1 post picture to album (returns imageID)
2 use imageID to request metadata for imageID
3 use the 'link' field (not the 'source' field) as a link to the image in a post to the user's wall
The downside is that there are now two posts to the wall, one for the image, and one for the actual post. I haven't figured out yet how to post a picture to an album, without also a wall post appearing (ideally it would just be the 2nd post that appears)

Community
- 1
- 1

Vijay yadav
- 1,220
- 8
- 17