开发者

Howto: Get ALL nearby places

开发者 https://www.devze.com 2023-02-21 20:01 出处:网络
The Situation I want to rebuild some parts of the FB place checking into my own application. The Challenge 1

The Situation

I want to rebuild some parts of the FB place checking into my own application.

The Challenge 1

How to get all nearby places? Facebook wants to have a quer开发者_开发百科y to look. But I want ALL nearby places.

Could this be a workaround?

        $places = $this->facebook->search( 'place', '%%', array('center'=>'53.559562, 9.964266', 'distance'=>'10000' ,'access_token' => $access_token));


Seems like you can just omit the query field if using the Graph API with: https://graph.facebook.com/search?q=pizza&type=place&center=lat,long&distance=1000

without: https://graph.facebook.com/search?type=place&center=lat,long&distance=1000

you can just leave it out entirely.

with specific number of results: https://graph.facebook.com/search?type=place&center=lat,long&distance=1000&limit=100

0

精彩评论

暂无评论...
验证码 换一张
取 消