In the most recent iOS SDk 3.5 they allow users to upload object directly to facebook (which is outlined here ). I have the following code which executes successfully and I am able to get the object id. However I need the full URL of where this object is at. Where do I get the URL from the generated object id?
[FBRequestConnection startForPostOpenGraphObject:object
completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
if(error) {
NSLog(@"Error in posting open graph Object: %@", error);
} else {
}
}];
All Facebook graph objects can be accessed via the graph API directly at the url https://graph.facebook.com/(object_id)
Note that if the resource requires an access token, you have to access via https and pass the access token - standard GET stuff:
https://graph.facebook.com/(object_id)?access_token=(access_token)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.