类似按钮显示我像数,但它不可见,在Facebook的API [英] The like-button show my like-count, but it's not visible in the facebook api

查看:118
本文介绍了类似按钮显示我像数,但它不可见,在Facebook的API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我去 https://developers.facebook.com/docs/plugins /像按钮/ 并进入 https://www.ballantinesbarproject.fr/?name= Epicerie的并选择框数为布局。 类似按钮显示像数,符合市场预期,因为我喜欢的页面。不过,如果我看在Facebook的API:

If i go to https://developers.facebook.com/docs/plugins/like-button/ and enter https://www.ballantinesbarproject.fr/?name=epicerie and select box-count as layout. the like-button shows a like count, as expected, since I liked the page. However, if I look in facebook api:

REST: <一href="https://api.facebook.com/method/links.getStats?urls=https://ballantinesbarproject.fr/?name=epicerie&format=json" rel="nofollow">https://api.facebook.com/method/links.getStats?urls=https://ballantinesbarproject.fr/?name=epicerie&format=json

FQL: <一href="https://graph.facebook.com/fql?q=select%20url,%20like_count%20from%20link_stat%20where%20url=%22https://ballantinesbarproject.fr/?name=charlatan%22" rel="nofollow">https://graph.facebook.com/fql?q=select%20url,%20like_count%20from%20link_stat%20where%20url=%22https://ballantinesbarproject.fr/?name=charlatan%22

(尽管用户要求,他本身可以计数的FQL-API)

(though one user claims, he can se counts in the fql-api)

它说,有0喜欢。怎么会呢?

It says there is 0 likes. How come?

推荐答案

我猜你应该使用下面的FQL:

I guess you should use the following FQL:

select url, like_count from link_stat where url="https://ballentines.herokuapp.com/?name=charlatan"

给我

{
  "data": [
    {
      "url": "https://ballentines.herokuapp.com/?name=charlatan", 
      "like_count": 1
    }
  ]
}

作为结果...

as result...

这篇关于类似按钮显示我像数,但它不可见,在Facebook的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆