Get locations using Graph Api of Facebook for Php

Go To StackoverFlow.com

0

How to get locations nearest to 1000 distance of user using Facebook Graph Api for Php? I am getting this link of graph api https://graph.facebook.com/search?q=coffee&type=place&center=37.76,-122.427&distance=1000 but not understand how to implement. Thanks in advance for helping.

2012-04-04 06:56
by Tony Stark


1

Using file_get_contents fetch the locations from graph api.

file_get_contents("https://graph.facebook.com/search?q=store&type=place&center=37.76,-122.427&distance=1000&access_token=YOUR_ACCESS_TOKEN");
2012-04-05 05:29
by Tony Stark


0

$search_result = $facebook->api('/search?q=coffee&type=place&center=37.76,-122.427&distance=1000');

You will get result in $search_result.

2012-04-04 09:13
by Madan
Ads