我在尝试返回Like按钮的total_count数时遇到问题。我们的应用程序管理Like按钮和Open Graph标签,我们有一些URL我们试图获得Like计数,但它返回没有OG标签信息的共享。
例如: https://graph.facebook.com/?id=http://www.fruitilike.com/products/shares-debug6/
返回:
{
"id": "http://www.fruitilike.com/products/shares-debug6/",
"shares": 1
}
它应该如何工作的示例: https://graph.facebook.com/?id=http://www.fruitilike.com/products/apple
返回:
{
"id": "114182628680532",
"name": "Apple",
"picture": "http://profile.ak.fbcdn.net/hprofile-ak-snc4/187789_114182628680532_2291233_s.jpg",
"link": "http://www.fruitilike.com/products/apple",
"likes": 1,
"app_id": 102729306450470,
"category": "Food",
"is_published": true,
"description": "The Apple. When it falls from a tree it generates gravity.",
"about": "The Apple. When it falls from a tree it generates gravity."
}
答案 0 :(得分:0)
这些结果没有错,这是因为你比较的对象有不同的类型:
http://www.fruitilike.com/products/shares-debug6/
- is website
http://www.fruitilike.com/products/apple/
- is food
对于不同类型的对象,可以使用不同的设置字段。