gpt4 book ai didi

Facebook FQL : Get group post status photos

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

我正在尝试从群组中用户的帖子中提取照片。群组中的帖子似乎被创建为“照片”或“状态”。

当它被创建为“照片”时,我可以从组内的帖子中提取照片:

SELECT attachment FROM stream WHERE post_id="<postid>"

但如果帖子是作为“状态”创建的,则此查询不会返回附件的任何数据。

这是一个创建为“状态”的帖子示例以及结果。当我知道该帖子附带一张照片时,没有附件(照片)数据。

SELECT attachment, type, message, created_time FROM stream WHERE post_id = '<postid>'

{
"data": [
{
"attachment": {
"description": ""
},
"type": 308,
"message": "Ceramic wall hanging with mirror from Spain (6\"x8\") $5 pickup in SR",
"created_time": 1379101402
}
]
}

这是权限问题还是我只是没有从正确的表中提取此类帖子?

谢谢克里斯

最佳答案

只是说它对我来说很好用:

SELECT post_id, attachment, type, message, created_time FROM stream WHERE post_id="POST_ID"

POST_ID 看起来像:481234567779150_559912345679366。我使用的权限是 user_groupsuser_friends

{
"data": [
{
"post_id": "481234567779150_559912345679366",
"attachment": {
"media": [
{
"href": "https://www.facebook.com/photo.php?fbid=10123450&set=gm.5599123456789366&type=1&relevant_count=1",
"alt": "bla bla bla",
"type": "photo",
"src": "https://fbcdn-photos-f-a.akamaihd.net/hphotos-ak-prn1/1013188_102013456789034740_1177097408_s.jpg",
"photo": {
"aid": "65904234567838363",
"pid": "65904345678990795",
"fbid": "10202345678934740",
"owner": 1533245678910,
"index": 1,
"width": 1032,
"height": 581,
"images": [
{
"src": "https://fbcdn-photos-f-a.akamaihd.net/hphotos-ak-prn1/1013188_10123456789_1177097408_s.jpg",
"width": 130,
"height": 73
}
]
}
}
],
"name": "",
"caption": "",
"description": "",
"properties": [
],
"icon": "https://fbstatic-a.akamaihd.net/rsrc.php/v2/yz/r/StEh3RhPvjk.gif",
"fb_object_type": "photo",
"fb_object_id": "65123456789090795"
},
"type": 308,
"message": "bla bla bla",
"created_time": 1373368884
}
]
}

您是否在 Graph API Explorer 中尝试过您的查询?你能提供更多信息吗?是什么团体, secret 的,公开的?用户是您的 friend 之一吗?我个人尝试过公共(public)或私有(private)团体以及 friend 或非 friend 的帖子。您能否确认其他带有照片的 308 类型的帖子和多个群组中是否会发生这种情况?

关于 Facebook FQL : Get group post status photos,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18794764/

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