如何使用图形API从Facebook群组中检索照片? [英] How do I retrieve photos from a Facebook group using the graph API?

查看:76
本文介绍了如何使用图形API从Facebook群组中检索照片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试从Facebook上的一个开放群组中检索照片时,我得到一个空列表.

When I try to retrieve photos from an open group on Facebook, I get an empty list instead.

此URL http://graph.facebook.com/275206825900621/photos 给了我一个空列表.我原本希望看到一个列表,其中包含我上传到测试组的照片.

This URL http://graph.facebook.com/275206825900621/photos gives me an empty list. I was expecting to see a list with the photo that I have uploaded to my test group.

{
   "data": [      
   ]
}

该问题可能与安全性有关,但没有出现任何访问​​错误.如果我从网址末尾删除/photos,则可以访问基本的公共信息, http://graph.facebook.com/275206825900621 .

The problem might be security related, but I do not get any access errors. If I remove /photos from the end of the URL, I get access to the basic public info, http://graph.facebook.com/275206825900621.

推荐答案

根据(https://developers.facebook.com/docs/reference/api/group/)上的文档, group对象.但是,存在一个picture连接.也许有一天,Facebook将通过组对象的照片连接扩展其API.

Per the documentation at (https://developers.facebook.com/docs/reference/api/group/) there is no "photos" connection on a group object. However, there is a picture connection. Maybe someday Facebook will expand their API with a photos connection for a group object.

这篇关于如何使用图形API从Facebook群组中检索照片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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