php - FB Graph Api Search, convert FQL query to fetch nearby pages? -
i've used old facebook sdk fql-queries. want fetch nearby places has page attached. , results, want many columns possible.
i want rewrite function can same latest facebook sdk 2.3.
the old way:
select name, type, page_id, hours, categories, about, bio, description, general_info, location, checkins, fan_count, phone, pic_big, website page page_id in(select page_id place distance(latitude, longitude, '37.76', '-122.427') < 1000)
but doesnt work new sdk. i've tried search-method , tried write different types of queries (in 'q' parameter) nothing gets close this.
as can see, want many columns pages possible.
the closest i've come far: https://developers.facebook.com/tools/explorer/145634995501895/?method=get&path=search%3fq%3dcoffee%26type%3dpage%26center%3d37.76%2c-122.427%26distance%3d1000&
does know how should think/do in order data in new way?
have at
- https://developers.facebook.com/docs/graph-api/reference/page#reading
- https://developers.facebook.com/docs/graph-api/using-graph-api/v2.3#fields
- https://developers.facebook.com/docs/graph-api/using-graph-api/v2.3#search
you can specify desired result fields according fields available respective object.
for example
/search?q=coffee&type=place¢er=37.76,-122.427&distance=1000&fields=id,name,hours,category,category_list,about,bio,description,general_info,location,talking_about_count,were_here_count,likes,phone,cover,website
try it
keep in mind fieldnames not same fql graph api.
Comments
Post a Comment