英文:
the comments of posts or video does not return data from page facebook
问题
我正在使用 Meta 开发者工具测试一个 API,但我遇到了一个问题,我没有收到任何评论、帖子、视频或附件。有趣的是,上周我成功地使用了相同的端点,并收到了预期的数据。我不确定为什么这不再起作用。这是我正在使用的端点:
me?fields=posts{message,created_time,id,comments{message,id,from,created_time},attachments{media_type,subattachments},status_type},videos{description,title,source,id,created_time}
英文:
I'm utilizing Meta Developer Tools to test an API, but I'm encountering an issue where I'm not receiving any comments, posts, videos, or attachments. Interestingly, I successfully used the same endpoint last week and received the expected data. I'm unsure why this isn't working anymore. Here's the endpoint I'm using:
me?fields=posts{message,created_time,id,comments{message,id,from,created_time},attachments{media_type,subattachments},status_type},videos{description,title,source,id,created_time}
答案1
得分: 0
我可以获取相同端点的数据:-
me?fields=posts{message,created_time,id,comments{message,id,from,created_time},attachments{media_type,subattachments},status_type},videos{description,title,source,id,created_time}
请确保在Page Access Tokens中选择页面,"User or Page" 下拉菜单。
使用的权限范围:
pages_show_list
, business_management
, pages_read_engagement
, pages_manage_metadata
, pages_read_user_content
, pages_manage_ads
, pages_manage_posts
, pages_manage_engagement
希望这对您有所帮助。
编辑:
我在查询参数中明确添加了access_token
,但也可以在不将其添加到查询参数中的情况下工作(因为工具在您发出请求时为您执行此操作,您可以通过单击 " </> Get Code "在 cURL 命令中检查此操作)。
英文:
I can get the data with the same endpoint:-
me?fields=posts{message,created_time,id,comments{message,id,from,created_time},attachments{media_type,subattachments},status_type},videos{description,title,source,id,created_time}
Make sure you select the page in Page Access Tokens in the "User or Page" dropdown.
Permission scope used:
pages_show_list
, business_management
, pages_read_engagement
, pages_manage_metadata
, pages_read_user_content
, pages_manage_ads
, pages_manage_posts
, pages_manage_engagement
I hope this helps.
EDIT:
I added the access_token
explicitly in the query parameter but it also works without adding it to the query parameter(as the tool does it for you when you make request, you check this in the cURL command by clicking on "</> Get Code").
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论