如何从Facebook照片评论中获取图像? [英] How to get the image from a facebook photo comment?

查看:160
本文介绍了如何从Facebook照片评论中获取图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



为了更清楚这里是我所说的




  • 我在我的网页时间轴上张贴了一张照片。

  • 现在有人发表了对这张照片的评论

  • 在每个评论中都有文字评论或附加照片。



现在,我得到的是评论仅供参考。
我想获取有关评论中使用的照片的信息。



谢谢。

解决方案

图片(在评论中)可以使用附件参数。



默认情况下,您没有在结果中获取附件字段,因此必须显式写入该字段。就像这样 -

 我/ posts?fields = comments.message,comments.id,comments.attachment 

演示



参考:< a href =https://developers.facebook.com/docs/reference/api/Comment/ =nofollow>评论


Either API or FQL, I am trying to get the photo submitted as comment in a photo post.

To make clearer here is what I am saying

  • I post a photo on my page timeline.
  • people now post comments on the said photo
  • either text comment or attaching photo in each comment.

Now, what I am getting is the comment information only. I want to get the information about the photo used in comment also.

Thanks.

解决方案

The picture (in the comment) could be fetched with the attachment parameter.

By default, you did not get the attachment field in the result, so you have to write this field explicitly. just like this -

me/posts?fields=comments.message,comments.id,comments.attachment

Demo

Ref: Comments

这篇关于如何从Facebook照片评论中获取图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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