Facebook Open Graph

Thursday, April 22, 2010 

AWESOME! Facebook open graph lets you grab data from facebook with an oauth connection. They hand back some amazing data for your exploitation pleasure. You get automatic login with a default privacy set to allow. I’m sure they will carefully vet every site they give permit, just like they say they will, and so you can be sure they’ve visited the companies, performed background checks and submitted everyone at the applying company to a lie detector test.

😉

Until then try the sample code so you can see what sorts of things you get back, like this query:

Then vary the object ID. (..com/objectid?acc…) Poking around to 4 I get:

{ “id”: “4”, “name”: “Mark Zuckerberg”, “first_name”: “Mark”, “last_name”: “Zuckerberg”, “link”: “http://www.facebook.com/zuck”, “birthday”: “05/14/1984”, “work”: [ { “employer”: { “id”: 20531316728, “name”: “Facebook” }, “start_date”: “2004-02” } ], “education”: [ { “school”: { “id”: 105930651606, “name”: “Harvard University” }, “concentration”: [ { “id”: 111394625549982, “name”: “Computer Science” } ] }, { “school”: { “id”: 108366532520435, “name”: “Phillips Exeter Academy” }, “year”: { “id”: 115476681798224, “name”: “2002” } } ], “timezone”: -7, “updated_time”: “2010-02-14T09:05:15+0000” }

Substitute any username for the query object and get that user’s profile (friend or not).  Increment through all possible object IDs and collect the entire FB data set.

Facebook.png
Also fun, if someone touches your fb open graph enabled page without having set their privacy options away from the default no share you can snag their picture list and store it, with the bonus feature that all the tagged and posted photos are enumerated with “obfuscated” permalinks which you can evermore access without being logged in.

<http://sphotos.ak.fbcdn.net/photos-ak-snc1/v343/124/38/500082942/n500082942_899423_8366.jpg>

Hits: 0

Posted at 00:02:08 GMT-0700
Comments

One Response

  1. […] More detailed instructions about how to access facebook’s new Open Graph (below). Open Graph is an interesting OAuth based mechanism by which facebook is opening their database to “select” third parties and allowing those parties to read FB cookies and automatically connect to FB and read “engagement enhancing” information about the user such as their social graph, their profile, their news feed, the groups they belong to, their pictures (including all that they’ve been tagged in): just about everything FB knows about them. The details are at this URL. […]

Leave a Reply