Skip to content

Instantly share code, notes, and snippets.

@aldonline
Last active December 25, 2015 10:09
Show Gist options
  • Save aldonline/6958973 to your computer and use it in GitHub Desktop.
Save aldonline/6958973 to your computer and use it in GitHub Desktop.
GET RDF triples from graph.facebook.com
# triples for a given entity
curl -H "Accept: text/turtle" -X GET "https://graph.facebook.com/aldo.bucchi"
# with metadata ( triples for properties / schema )
curl -H "Accept: text/turtle" -X GET "https://graph.facebook.com/aldo.bucchi?metadata=1"
# of course you can pass an access token to gain access to a broader piece of the graph
curl -H "Accept: text/turtle" -X GET "https://graph.facebook.com/aldo.bucchi&access_token=TOKEN"
# to get a fresh ( but short lived ) token browse to:
# https://developers.facebook.com/tools/explorer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment