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

you can specify desired result fields according fields available respective object.

for example

/search?q=coffee&type=place&center=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

https://developers.facebook.com/tools/explorer/145634995501895/?method=get&path=search%3fq%3dcoffee%26type%3dplace%26center%3d37.76%2c-122.427%26distance%3d1000%26fields%3did%2cname%2chours%2ccategory%2ccategory_list%2cabout%2cbio%2cdescription%2cgeneral_info%2clocation%2ctalking_about_count%2cwere_here_count%2clikes%2cphone%2ccover%2cwebsite

keep in mind fieldnames not same fql graph api.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -