Facebook places checkin using open graph protocol ID as place ID

D-Nice picture D-Nice · Apr 3, 2011 · Viewed 8.2k times · Source

I used the FB page linter to verify that all the meta information I'm using is correct. According to the graph url, my page id is 157797447612809, yet when I try to publish a checkin to this page, i receive the error:

(#100) Requires a valid Place Page ID

Surprisingly, there is no good information about publishing a checkin to an open graph page available anywhere on the internet. I've used every possible variation of my place page ID that I could imagine, from the URL to page id's of different pages, yet I always get this same error. Does anyone have an example on how this should be accomplished? Thanks!

Answer

nathanielwolf picture nathanielwolf · Jul 3, 2012

Since there is absolutely no documentation by Facebook on this matter, I solved this by looking at what foursquare has done and a lot of trial and error.

When defining your open graph object within facebook, you must add a property of type GeoPoint. I called mine location. Define in the object page meta like this:

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

Now when you debug/lint this object it register as a place, just like the foursquare HQ. You can check in and create map views for actions that include this object.