简体   繁体   English

Facebook Graph API和FQL返回不同的数据

[英]Facebook Graph API and FQL return different data

I am using Facebook's FQL on my website to pull the 'Share' count for a number of items. 我在网站上使用Facebook的FQL来获取许多商品的“共享”计数。 Recently it has stopped counting new shares. 最近,它已停止计算新股。 Graph API tends to report the correct value (sometimes..?) and FQL reports 0 no matter what. Graph API倾向于报告正确的值(有时..?),而FQL则报告0,无论如何。 I am using the 'sharer' popup on my website. 我在网站上使用“共享程序”弹出窗口。

For reference, the reason it was not counting shares is because I was using an alternate format for the Share URL which contained p[title], p[url], etc. The supported method which will count shares is as below. 作为参考,之所以不计入份额,是因为我在共享URL中使用了一种替代格式,其中包含p [title],p [url]等。所支持的计入份额的方法如下。

<a href="https://www.facebook.com/sharer/sharer.php?u=example.org" target="_blank">
    Share on Facebook
</a>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM