我有16000网址,我需要得到每个人的Facebook的ID图 [英] I have 16,000 URLs, I need to get the facebook graph ID of each one

查看:445
本文介绍了我有16000网址,我需要得到每个人的Facebook的ID图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有16000网址。每一个Facebook的Open Graph的对象。我需要打开的图形数据为每一个16K的URL。

I have 16,000 URLs. each is a Facebook open graph object. I need to get the open graph data for each of the 16k URLs.

我在想这样做的方式是先查找每个URL的开放式图形对象ID,然后在夜间cron​​作业,我会做每个对象的细节graph.facebook.com一批请求。

The way I'm thinking about doing this is first finding the open graph object ID of each URL, and then in a nightly cron job, I would do a graph.facebook.com batch request for the details of each object.

不过第一步我不确定该怎么办。我如何获得16000网址的所有对象ID? (一次全部)​​。也许FQL?

However the first step I am unsure of how to do. How do I get all the Object IDs of 16,000 URLs? (all at once). perhaps FQL?

请大家帮忙!

推荐答案

$ batched_request ='[{方法:POST,relative_url:方法/ fql.query查询=选择的ID,从object_url网址其中URL在('$网址。')}]';

$batched_request='[{"method":"POST","relative_url":"method/fql.query?query=select id, url from object_url where url in ('.$urls.')"}]';

$网址应该是300左右的URL。然后重复

$urls should be around 300 urls. and then repeat

这篇关于我有16000网址,我需要得到每个人的Facebook的ID图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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