How to send map route to facebook

I have one fitness app. when the user starts to run, then start the route to get a draw, and when the user stops, then the route will be completed, since I have a map route, so I want to publish this map route on facebook, because I checked the documentation on facebook, and i found something like

NSMutableDictionary<FBGraphObject> *action = [FBGraphObject graphObject];action[@"course"] = @"http://samples.ogp.me/136756249803614";

[FBRequestConnection startForPostWithGraphPath:@"me/fitness.walks"
                                   graphObject:action
                             completionHandler:^(FBRequestConnection *connection,
                                                 id result,
                                                 NSError *error) {
                                 // handle the result
                             }];

they give a link to the "course"

The link for the course is https://developers.facebook.com/docs/reference/opengraph/object-type/fitness.course but I don’t know how to use it.

and Facebook documentation is https://developers.facebook.com/docs/reference/opengraph/action-type/fitness.walks

, - , facebook

+5

All Articles