Last active
October 3, 2015 20:11
-
-
Save CircleSquaredPublishing/d27db4894c414d238512 to your computer and use it in GitHub Desktop.
Step 2: Calling the Facebook Graph API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*********************************************************************** | |
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¢er=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