Skip to content

Instantly share code, notes, and snippets.

@santiagobasulto
Created April 5, 2012 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save santiagobasulto/2313912 to your computer and use it in GitHub Desktop.
Save santiagobasulto/2313912 to your computer and use it in GitHub Desktop.
Get all friends likes from facebook
curl https://graph.facebook.com \
-F 'access_token=...' \
-F 'batch=[
{"method": "GET",
"name" : "get-friends",
"relative_url": "me/friends",
},
{"method": "GET",
"relative_url": "likes/?ids={result=get-friends:$.data.*.id}"
}
]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment