gpt4 book ai didi

facebook - 如何使用 GraphAPI 从 Facebook 群组检索照片?

转载 作者:行者123 更新时间:2023-11-30 05:15:17 25 4
gpt4 key购买 nike

我想使用 GraphAPI 从 Facebook 群组中检索照片。基于FB Docs我看不到与照片的任何联系。我想获取照片和上传照片的用户。

最佳答案

图形 API:

http://graph.facebook.com/GROUP_ID/?fields=name,description ,专辑

返回

{
"name": "Group name",
"description": "Group description",
"id": "GROUP_ID",
"albums": {
"data": [
{
"id": "GROUP_ALBUM_ID",
"name": "GROUP_ALBUM_NAME",
"link": "GROUP_ALBUM_LINK",
"created": 1352388257,
"modified": 1352388257,
"cover_pid": 444427468954616,
"count": 22
}
],
"paging": {
"next": "https://graph.facebook.com/GROUP_ID/albums?limit=25&offset=25"
}
}
}

和下一个查询

http://graph.facebook.com/GROUP_ALBUM_ID/photos?fields=picture,source,name&type=uploaded

关于facebook - 如何使用 GraphAPI 从 Facebook 群组检索照片?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4869595/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com