如何下载所有Facebook“页面上的帖子"(不滚动) [英] How to download all Facebook 'posts to page' (without scrolling)

查看:49
本文介绍了如何下载所有Facebook“页面上的帖子"(不滚动)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够从Facebook页面下载/获取所有帖子的副本.通常只加载几篇文章,然后滚动到底部时,它会加载更多文章.

I would like to be able to download/take a copy of all Posts from a Facebook page. Typically only a few posts are loaded, then as you scroll to the bottom it loads more.

有没有办法触发所有帖子的加载?

Is there a way to trigger the loading of all posts?

示例页面: https://www.facebook.com/orgranhealthandnutrition/posts_to_page

推荐答案

不允许抓取,您必须使用Graph API来做到这一点.您很可能希望使用/page-id/posts 端点: https://developers.facebook.com/docs/graph-api/reference/v2.2/page/feed

Scraping is not allowed, you MUST use the Graph API to do that. You will most likely want to use the /page-id/posts endpoint: https://developers.facebook.com/docs/graph-api/reference/v2.2/page/feed

为此,您仅需要一个应用程序访问令牌,该令牌很容易创建: App-ID | App-Secret

You only need an App Access Token for that, which is easy to create: App-ID|App-Secret

但是请小心,不要在客户端上使用该密码,因为App Secret仅应在服务器上使用.出于某种原因,它被称为秘密".

Careful though, don´t use that one on the client, because the App Secret should only be used on the server. It´s called "Secret" for a reason.

在API资源管理器中对其进行测试,其中有一个带有下一个"的分页"对象.您可以迭代那个.

Test it in the API Explorer, there is a "paging" object with "next" in it. You can iterate with that one.

这篇关于如何下载所有Facebook“页面上的帖子"(不滚动)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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