【发布时间】:2015-07-08 10:06:22
【问题描述】:
我正在使用 Facebook Graph API 来获取网页中某个帖子的覆盖率
它会返回一个包含以下内容的页面:
{
"data": [
{
"id":"129788793265_10154069879148266/insights/post_impressions_unique/lifetime",
"name": "post_impressions_unique",
"period": "lifetime",
"values": [
{
"value": 1627
}
],
"title": "Lifetime Post Total Reach",
"description": "Lifetime: The total number of people your Page post was served to. (Unique Users)"
}
],
"paging": {
"previous": "https://graph.facebook.com/<postID>/insights/post_impressions_unique/lifetime?access_token=xxxx",
"next": "https://graph.facebook.com/<postID>/insights/post_impressions_unique/lifetime?access_token=xxxx"
}
}
我想每 10 分钟将页面中的“值”1627 提取到一个文件中。
我该怎么做?
【问题讨论】:
标签: php json facebook-graph-api extract