获取张贴在页面墙/ Feed上的高分辨率照片 [英] getting high resolution photos that were posted on a page wall/feed

查看:108
本文介绍了获取张贴在页面墙/ Feed上的高分辨率照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用打开的图表获取页面墙。
当有人发布照片时,我会在JSON上获得它

I'm getting my page wall with the open graph. And when someone posted a photo, I get it on the JSON

{
     "id": "27888702146_10150369820322147",
     "from": {
        "name": "brocoli",
        "category": "Record label",
        "id": "27888702146"
     },
     "message": "Vincent Epplay / David Fenech / Jac Berrocal \u00e0 Beaubourg ce soir, 19h, gratos.",
     "picture": "http://photos-f.ak.fbcdn.net/hphotos-ak-snc7/305819_10150369820292147_27888702146_8255527_583491475_s.jpg",
     "link": "https://www.facebook.com/photo.php?fbid=10150369820292147&set=a.386279807146.165840.27888702146&type=1",
     "icon": "http://static.ak.fbcdn.net/rsrc.php/v1/yz/r/StEh3RhPvjk.gif",
     "type": "photo",
     "object_id": "10150369820292147",
     "created_time": "2011-10-16T08:22:21+0000",
     "updated_time": "2011-10-16T08:22:21+0000",
     "likes": {
        "data": [
           {
              "name": "brocoli",
              "category": "Record label",
              "id": "27888702146"
           },
           {
              "name": "Agathe Morier",
              "id": "601668526"
           }
        ],
        "count": 2
     },
     "comments": {
        "count": 0
     },
     "is_published": true
  }

问题是图片链接是图片的低分辨率副本。

The problem is that the picture link is a low resolution copy of the picture.

如何获得完整图片的网址?

How can I get the URL of the full picture ?

谢谢!!

最佳

Geoffroy

推荐答案

您可以通过查询图谱API来获取照片的不同版本 object_id (不是照片 post_id ,结果是 id 提供)。

You can get different version of the photo by querying Graph API with it's object_id (not photo post_id which is id in results you provided).

一旦你按对象 id 照片 c $ c>你将获得<$ c的数组$ c>图片包含网址和尺寸:

Once you'll request the photo by object id you'll get array of images with URLs and dimensions:

http://graph.facebook.com/10150369820292147?fields=images

这篇关于获取张贴在页面墙/ Feed上的高分辨率照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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