Mark Molina
Mark Molina

Reputation: 5077

Open Graph Map layout

I succesfully posted an action to open graph with the 'Item' attachment layout. However I also want to post a action with the 'Map' attachment layout. My iOS app has an array with coordinates which form a route on a map. I looked everywhere but just cant find a good tutorial which explains how to achieve this. Does someone know how to post a action to the open graph with a route preview on the map?

Upvotes: 0

Views: 1288

Answers (1)

Matthew Johnston
Matthew Johnston

Reputation: 4439

When you are creating your Open Graph custom Objects, you need to define a property of that Object as a GeoPoint and then set 'Is Array', like this:

https://developers.facebook.com/attachment/object_geopoint.png/

If you include this information, there should be a Map style newsfeed post automatically created when the action is published. You should also set up a Map style Aggregation. There is more info on this here.

You can see an example of how this sort of complex route is created by looking at an example, here is one from an Endomondo workout: http://pastebin.com/VEW2GU0t

Upvotes: 1

Related Questions