What is the parameter “distance” when using search

2019-07-17 01:39发布

问题:

What does "distance" refer to? Amount of miles? Radius? I can't find any documentation on it. What's the maximum limit FB will allow us to grab?

$nearby = $facebook->api('/search?type=place&center='.$_GET['lat'].','.$_GET['lon'].'&distance=1000&limit=200');

回答1:

Distance refers to the radius with respect to the latitude and longitude of the location in meters. As mentioned by Chris, the maximum is 50,000 m.