从图片api获取从Facebook发布的图片对象 [英] get picture object from facebook post with graph api

查看:345
本文介绍了从图片api获取从Facebook发布的图片对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以通过facebook graph-api从一个特定的facebook-post获取一个图片URL(即 https://developers.facebook.com/tools/explorer?method=GET&path=196118303833398_362048290573731 ),但是当我需要获得一个图片对象(获得更大尺寸的特定作物,如文档中所述)我尝试



https://developers.facebook.com/tools/explorer?method=GET&path=196118303833398_362048290573731/picture



我得到响应消息(#100)没有指定节点...我忘记了什么?

解决方案

p>只有用户和页面有图片 连接 - 帖子不。 (A 字段是不同的。)



但我猜,$ code> full_picture 字段是你想要的: https://开发人员。 facebook b b b

I'm able to get a picture-url from a specific facebook-post through the facebook graph-api (ie https://developers.facebook.com/tools/explorer?method=GET&path=196118303833398_362048290573731), but when I need to get a picture-object (for getting bigger sized en specific crops as described in the documentation) I try

https://developers.facebook.com/tools/explorer?method=GET&path=196118303833398_362048290573731/picture

I get the response message "(#100) No node specified"... what do I forget?

解决方案

Only users and pages have a picture connection – posts don’t. (A field is something different.)

But I guess the full_picture field is what you want: https://developers.facebook.com/tools/explorer?method=GET&path=196118303833398_362048290573731%3Ffields%3Dfull_picture%2Cpicture

这篇关于从图片api获取从Facebook发布的图片对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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