获得"喜欢"从其中有一个Facebook ID的URL数据 [英] Getting "like" data from an URL which has a facebook ID

查看:199
本文介绍了获得"喜欢"从其中有一个Facebook ID的URL数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法检索这个网址喜欢或股份:

I am having trouble to retrieve the likes or shares from this url:

http://marceloduende.com/facebook_test/

我用下面的方法尝试这样的:

I have tried this with the following ways:

https://graph.facebook.com/?ids= http://marceloduende.com/facebook_test

<一个href=\"http://graph.facebook.com/fql?q=select%20url%2C%20id%2C%20type%2C%20site%20from%20object_url%20where%20url%20%3D%20%22http%3A%2F%2Fmarceloduende.com/facebook_test%2F%22\" rel=\"nofollow\">http://graph.facebook.com/fql?q=select%20url%2C%20id%2C%20type%2C%20site%20from%20object_url%20where%20url%20%3D%20%22http%3A%2F%2Fmarceloduende.com/facebook_test%2F%22

这两个'时间,不同的是我的ID来空对我来说,没有任何数据。

Both of 'em are coming empty to me, without any data except my ID.

我不知道是否有在我的Facebook应用程序的把戏,我应该检查什么的HTML源代码code,我可以错过(在标题或东西)。
我想AP preciate有这方面的帮助。

I don't know if there is any trick on my facebook app that I should have checked or something on the HTML source code that I could have missed (on the headers or something). I would appreciate any help on this.

的*编辑:我可以得到的数据,但由于某些原因,它仅返回股份,也不喜欢,甚至当我有我的页面上的类似按钮。为什么我得到这个有限的数据有何建议?

* I can get the data, but for some reason, it returns only the shares, not the likes, even when I have the like button on my page. Any advice on why I get this limited data?

感谢您

推荐答案

如果您填充 OG:网址的元数据,Facebook的对待,作为cannonical URL。所以,你的数据应可在 http://marceloduende.com/facebook_test/index.html

If you populate the og:url metadata, Facebook treats that as the cannonical URL. So your data should be available at http://marceloduende.com/facebook_test/index.html.

退房的<一个href=\"https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fmarceloduende.com%2Ffacebook_test%2F\"相对=nofollow>调试器为您的网页。它会告诉你最需要知道的数据。您还需要修正 OG:键入标签一个有效的

Check out the debugger for your page. It tells you most of the data you need to know. You also need to fix the og:type tag to a valid one

这篇关于获得&QUOT;喜欢&QUOT;从其中有一个Facebook ID的URL数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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