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

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

问题描述

我刚刚发布了一个问题(这里),它现在正在工作。但是这个问题回答了另外一个问题。

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

下面这个URL只有我的共享

This URL below I have only my shares

< a href =https://graph.facebook.com/?ids=http://marceloduende.com/facebook_test/index.html =nofollow noreferrer> 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');

Unminified脚本版本:

Unminified script version:

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

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

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