In order to draw a path inside a fb custom story with a map, how am I supposed to write the array of GeoPoints? Unfortunately the fb documentation seems not to be very detailed about this topic.
Let's have a custom story with 'test' namespace containing an 'object' which inherits from Place. 'object' has a 'route' property which is an array of GeoPoints.
NSDictionary *properties =
@{@"og:type":@"test:object",
@"og:title":@"Title",
@"object:route":
@[@{@"latitude":@37.782600, @"longitude":@-122.443265},
@{@"latitude":@37.785992, @"longitude":@-122.404813}]};
FBSDKShareOpenGraphObject *obj = [FBSDKShareOpenGraphObject objectWithProperties:properties];
FBSDKShareOpenGraphAction *action = [FBSDKShareOpenGraphAction actionWithType:@"test:action" object:obj key:@"object"];
FBSDKShareOpenGraphContent *content = [[FBSDKShareOpenGraphContent alloc] init];
content.action = action;
content.previewPropertyName = @"object";
[FBSDKShareDialog showFromViewController:self withContent:content delegate:self];
With this code I get an exception as the SDK expects latitude and longitude to have a namespace. I've tried both "og:latitude" and "test:longitude" but I always get an blank map with no path.