In my app its possible to report accidents. When doing this, the user can post this to Facebook. I would like to show the accident on a map together with the address.

Because an accident only has a location and an address, I can't give it a title. But because there is no title, nothing is shown in the box above the map marker.

The story on my timeline

Also Facebook does not make it possible to to add text above or below the map if you want to show the story as a map instead of an item.

enter image description here

So where can I put the address? Currently I put it in the description but the description is nowhere visible...

Am I missing something here?

有帮助吗?

解决方案

It's late, but my answer might help other people.

Your JSON should contain the "og:title" like below

{ "og:url": "http://samples.ogp.me/887352634705379", "og:title": "Sample Itinerary", "og:type": "namespace:object_type", "og:image": "https://fbstatic-a.akamaihd.net/images/devsite/attachment_blank.png", "og:description": "", "fb:app_id": [fb-id] }

Now "Sample Itinerary" will be displayed as the name of the pin.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top