I am able to share text, picture and url with facebook using following code.
_lblTitle.text=@"Joe just ran 3.10 miles on the Niagara Falls 5k in 24.53 with http://www.outsideinteractive.com";
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
_lblTitle.text, @"name",
data, @"picture",
nil];
// Make the request
[FBRequestConnection startWithGraphPath:@"/me/photos"
parameters:params
HTTPMethod:@"POST"
completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
if (!error) {
// Link posted successfully to Facebook
NSLog([NSString stringWithFormat:@"result: %@", result]);
} else {
// An error occurred, we need to handle the error
// See: https://developers.facebook.com/docs/ios/errors
NSLog([NSString stringWithFormat:@"%@", error.description]);
}
}];
But now I want to share hyperlink (text having link).
Example: Joe just ran 3.10 miles on the Virtual Niagara Falls 5k Course in 24.53 with Outside Interactiive.
Currently I am able to share like this:
Joe just ran 3.10 miles on the Niagara Falls 5k in 24.53 with http://www.outsideinteractive.com
Note:I am also sharing picture in current functionality, And I want to continue with that.
Desired Result: