How to send route map to facebook not image

facebook provides a new feature for placing a route map, not a map image. I checked their documentation and I found this code, but I get a lot to do

they gave such a code

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
                             }];
-2
source share
1 answer

I have done it. you cannot do this using only iOS, you need to use php, you need to send an array of longitude and latitude to the php side, and then with php side posting on this map on facebook my work was on iOS, I don't know how to do it on the PHP side

0
source

All Articles