I have figured out how to add a post to my users feed, but currently it requires using an image URL:
// The action links to be shown with the post in the feedNSArray* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys: self.title,@"name",self.url,@"link", nil], nil];NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks];// Dialog parametersNSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: self.title, @"name", @"Created using My App.", @"caption", @"Check out the thing I just uploaded!", @"description", self.url, @"link", @"http://www.facebookmobileweb.com/hackbook/img/facebook_icon_large.png", @"picture", actionLinksStr, @"actions", nil];[facebook dialog:@"feed" andParams:params andDelegate:self];
I would like to upload a UIImage
instead. I have seen some people talking about using the graph api
for this. How would I do this and still be able to use a caption, title and message?