Get List Page Checkins Using Facebook Graph API
When I view the page object for a page I own ( https://graph.facebook.com/[PAGE_ID]?access_token=[ACCESS_TOKEN] ), it shows:
{
...
"checkins":4
...
}
Directly viewing the page on facebook shows 4 checkins as well.
However, when I try and view the checkins field using the graph api ( https://graph.facebook.com/[PAGE_ID]/?fields=checkins&access_token=[ACCESS_TOKEN] ), it shows the follow开发者_StackOverflow中文版ing:
{
"checkins": {
"data": [
]
}
}
I also tried using the page access token, but that didn't work either.
I have enabled the user_checkins, friends_checkins, and publish_checkins permissions.
I experience the same problem when I change ?fields=checkins
to ?fields=likes
.
Can anybody shed some light on this, or tell me how to get a list checkins for a particular page?
Try accessing the Page's checkins like so:
https://graph.facebook.com/[PAGE_ID]/checkins?access_token=[ACCESS_TOKEN]
as well as likes:
https://graph.facebook.com/[PAGE_ID]/likes?access_token=[ACCESS_TOKEN]
精彩评论