Facebook posts checkin using Open Graph protocol id as place id

I used the FB page linter to make sure that all the meta information I use is correct. According to the url graph , my page ID is 157797447612809, but when I try to post a check to this page , I get an error message:

(#100) Requires a valid Place Page ID 

Surprisingly, there is no good information about publishing a check on an open graphic page, available anywhere on the Internet. I used all the possible variations of my place page id that I could imagine, from the URL to the page id on different pages, but always get the same error. Does anyone have an example of how this should be done? Thanks!

+6
facebook facebook-graph-api checkin
source share
4 answers

Since there is absolutely no Facebook documentation for this, I solved this by seeing what foursquare did and a lot of trial and error.

When defining an open graph object in facebook, you must add a property of type GeoPoint . I named my location. Define the object page in the metadata as follows:

  <meta property="mytestapp:location:latitude" content="37.791" /> <meta property="mytestapp:location:longitude" content="-122.395" /> 

Now, when you debug this object, it is registered as a place, as a fourth grader . You can check and create map views for activities that include this object.

+3
source share

I think you need to add at least location related tags, for example. og: longitude and og: latitude.

See this graph output for a page with these og tags and checks.

http://graph.facebook.com/149998791679075

http://foursquare.com/venue/128530

By the way: I hope you get the irony of this example 8)

I'm also not sure if you can register on the og: type = food page. Perhaps this should be one of the types of places, for example. landmark - see type information on the OpenGraph page. However, the above example applies to og: type = company, so you need to check the various types to see.

+1
source share

The Geopoint object is described here:

https://developers.dev.facebook.com/docs/opengraph/complextypes/#geopoint

Example:

 <meta property="your-og-app:location:latitude" content="37.416382"> <meta property="your-og-app:location:longitude" content="-122.152659"> <meta property="your-og-app:location:altitude" content="42"> 
0
source share

I spent too many hours on this, but it seems impossible. Then I typed this answer. I think this feature is currently open only to Foursquare. Facebook API docs have nothing to do with this.

0
source share

All Articles