从具有 Facebook ID 的页面获取有限数据 [英] Getting limited data from a page which has a Facebook ID

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

问题描述

我之前刚刚发布了一个问题 (在这里),它现在正在工作.但是在回答了这个问题之后,又出现了另一个问题.

I just posted a question before (here) and it is working now. But with that question answered, another one came up.

下面的这个网址我只有我的分享

This URL below I have only my shares

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

在这个 URL 上,我有所有这些数据......

And on this URL, I have all this data...

https:///graph.facebook.com/?ids=http://www.imdb.com/title/tt2380247/#lb-vi2114495513

有人对我如何获取所有这些数据有任何建议吗?这是我唯一想不通的技巧.

Anyone has any advice on how do I get all this data? It's the only trick I couldn't figure out.

谢谢

推荐答案

问题已解决.

IMDB 使用自己的 javascript 来做 fql,然后吐出 json.证明如下.所以默认情况下,facebook 提供的是我已经拥有的.谢谢大家.

The IMDB uses it's own javascript to do the fql and then spit the json. The proof is below. So by default, what facebook provides is what I already have. Thank you all.

掺假的 Facebook 脚本:

Adulterated facebook script:

(function(d,s,id){var js,stags=d.getElementsByTagName(s)[0];if(d.getElementById(id)){return;}js=d.createElement(s);js.id=id;js.src="http://g-ec2.images-amazon.com/images/G/01/imdb/plugins/rating/js/rating.min.js";stags.parentNode.insertBefore(js,stags);})(document,'script','imdb-rating-api');

(function(d,s,id){var js,stags=d.getElementsByTagName(s)[0]; if(d.getElementById(id)){return;}js=d.createElement(s);js.id=id; js.src="http://g-ec2.images-amazon.com/images/G/01/imdb/plugins/rating/js/rating.min.js"; stags.parentNode.insertBefore(js,stags);})(document,'script','imdb-rating-api');

未缩小的脚本版本:

http://g-ec2.images-amazon.com/images/G/01/imdb/plugins/rating/js/rating.js

这篇关于从具有 Facebook ID 的页面获取有限数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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