开发者

Facebook Graph: Find Nearby Friends' Checkins

开发者 https://www.devze.com 2023-03-29 13:15 出处:网络
I want to us开发者_运维百科e FB Graph API to find friends nearby within a certain time window and lat/lon/distance

I want to us开发者_运维百科e FB Graph API to find friends nearby within a certain time window and lat/lon/distance

This request (below) will return friends who have checked in within a time (since yesterday), but I can't seem to get the lat/lon/distance piece to work. (I do have the correct token working fine)

https://graph.facebook.com/search?since=yesterday&type=checkin&center=34.06624,-118.41298&distance=10000

thanks!


I recommend using graph api explorer. It is easier to get tokens and find solutions.

Maybe this will help? You can get all checkins and then find those you need in your app. (You will need friends_status permission) http://developers.facebook.com/tools/explorer/?method=GET&path=me%2Ffriends%2F%3Ffields%3Dcheckins

I hope this will help you.


I have never been able to get checkins via graph api. Always get back an empty array. I finally used FQL to do something similar to what you need. see if this question and answer helps you: how to find friend's past checkins near a location?

0

精彩评论

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

关注公众号