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

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

问题描述

我刚刚发布了一个问题之前(<一href=\"http://stackoverflow.com/questions/13022173/getting-like-data-from-an-url-which-has-a-facebook-id\">here)并且它现在的工作,但随着这个问题回答,另一个走了过来。

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:

(功能(D,S,ID){VAR JS,雄鹿= d.getElementsByTagName(S)[0];
如果(d.getElementById(ID)){回报;} JS = d.createElement(S); js.id = ID;
js.src =htt​​p://g-ec2.images-amazon.com/images/G/01/imdb/plugins/rating/js/rating.min.js;
stags.parentNode.insertBefore(JS,雄鹿);})(文件,脚本,IMDB评级-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天全站免登陆