Skip to content

Instantly share code, notes, and snippets.

@CircleSquaredPublishing
Last active October 3, 2015 20:11
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 CircleSquaredPublishing/d27db4894c414d238512 to your computer and use it in GitHub Desktop.
Save CircleSquaredPublishing/d27db4894c414d238512 to your computer and use it in GitHub Desktop.
Step 2: Calling the Facebook Graph API
/***********************************************************************
2. Create and execute the API call using the PHP cURL library functions.
************************************************************************/
$ch= curl_init();
$url= 'https://graph.facebook.com/v2.4/search?q=restaurant&type=place&distance=3200&center=26.47,-80.07&fields=location,name,likes,talking_about_count,were_here_count,description,website,cover,about,culinary_team&limit=50&access_token=5893781074754054|r-KJ2eJLHOHLHlhf-eohdOH-LHd
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_exec($ch);
curl_close($ch);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment