Using Facebook Open Graph Map Aggregation for Checks

First of all, this is a feature that I am trying to solve:

https://developers.facebook.com/docs/opengraph/define-units/

(under the heading of the layout style)

So, I have a cross-platform application that has a feature that allows people to follow Facebook locations. Right now, the actual posting of the publication works fine, but I'm looking to get a little more information about people's time than what we have right now, and this is a tiny box that says: “Nabil Freeman checked [place]” in the same where it says: "Nabil Freeman changed his political views, etc." and aggregation that literally says “42 checks” and nothing more.

I really need map aggregation, where instead of highlighting the route, all the contacts on which Nabil Freeman checked last week, or a month, or something else are displayed. The bonus thing that had to be for each check in order to publish a map with one conclusion on the timeline, but aggregation is much more important.

As a bonus, is there a way to embed my own image in aggregation? If so, I could create my own map using the Google Maps API or a similar service and simply insert it.

Thanks so much for your time guys :)

0
facebook facebook-opengraph
source share
1 answer

What you described is possible using the Open Graph settings of your application.

For example, I made this simple check-ins map using map layout aggregation:

My application name is "ES1", a test application.

Map layout aggregation of 5 bars reviewed by a user

Labels for 5 bars that have been viewed by the user are shown here. The mouse hangs over the "Bar Five", so a label is displayed. To do this, I used the following Open Graph aggregation settings (my “bar” object has user properties “rating” (int) and “location” (geo-information)):

  • Layout Style: Map
  • Sort by: Custom, bar.rating, from maximum to least
  • Aggregation Header: Overview
  • Card Style: Multiple Actions
  • Component Point: bar.location

A story is published for each action (“review”). It looks like this:

OG story with map attachment

The key is to configure the "history attachment" with the "Map" layout. And to see this attachment to history, you must click on the time link in the timeline block. Here is a timeline block with a time reference of "about a minute ago."

timeline unit of a published action

The history attachment (part of the configuration of the action type) is configured as follows:

  • Action Type: Overview
  • Associated Object: Bar
  • [verb tenses go here]
  • Attachment Layout: Map
  • Numbers: bar.rating (number selector), foo (header), points (units)
  • Highlighted points: bar.location
  • Route: [empty]

Not sure how you will use your own card. Perhaps you can create a custom map for each geoinformation and save it as .png, then use .png for og: image. But the map will not be interactive. Alternatively, simply specify the page specified in og: url that contains the map you want.

+4
source share

All Articles