Wrong number of Facebook checkins via Facebook Graph API

一世执手 提交于 2019-12-24 17:07:03

问题


I have a Facebook page integrated with spot and it has checkin counter(ex: 90 were here)
in the left of the page.
Now I can access the page using facebook Graph API Exploler like follows.

https://graph.facebook.com/page_id

In the result of JSON format, there is the field as follows.

"can_post": true,
"checkins": 88,
"type": "page"

This says there are total 88 checkins on my spot of the Facebook page.
But, the checkin counter in my Facebook page says, it's 90.

Why there is a little difference between page counter and graph API?

Thank you for your help.


回答1:


Those are different numbers.

  • The one you see in the web interface is X people were here -
  • The one exposed in the API is Y checkins occurred here

If I check in somewhere and tag 3 friends, X goes up by 4, Y goes up by 1

If I check in another time and tag the same 3 friends, X stays the same, Y goes up by 1




回答2:


For anyone still having the same problem. The checkins counter is deprecated as are checkins themselves, see http://developers.facebook.com/docs/reference/api/checkin/

NOTE: Publishing a Checkin object is deprecated in favor of creating a Post with a location attached.

Luckily, via FQL you can now get the were_here_count field of a page instead. This field shows exactly the same # users as is shown on Facebook itself.



来源:https://stackoverflow.com/questions/8049504/wrong-number-of-facebook-checkins-via-facebook-graph-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!