简体   繁体   English

Facebook API从帖子中获取图片

[英]Facebook API get picture from post

I am trying to get pictures from photo type posts on Facebook. 我正在尝试从Facebook上的照片类型帖子中获取图片。 I am using Python. 我正在使用Python。 I tried to access post_id/picture, but I keep getting: facebook.GraphAPIError: (#12) picture edge for this type is deprecated for versions v2.3 and higher 我尝试访问post_id / picture,但我不断得到:facebook.GraphAPIError:(#12)v2.3及更高版本不建议使用此类型的图片边缘

Is there any alternative to the picture edge in v2.8? v2.8中的图片边缘是否可以替代? The documentation still lists picture as an option. 文档仍然列出图片作为选项。

Thanks. 谢谢。

I faced a similar problem. 我遇到了类似的问题。 Now to get the picture of a post you can call 现在要获取帖子的图片,您可以致电
{post-id}?fields=picture,full_picture
where picture returns the url of a thumbnail of the image, while full_picture returns the url of the real image. 其中picture返回图像缩略图的URL,而full_picture返回实际图像的URL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM