php 如何将 Facebook 页面帖子作为博客帖子引入 WordPress?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9714020/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 07:28:55  来源:igfitidea点击:

How to pull in Facebook Page posts as blog posts to WordPress?

phpfacebookwordpressfacebook-graph-apiwordpress-plugin

提问by ylluminate

After much strugglewith getting Facebook to yield it's RSS feed for a page, it seems as though my futility levels have reached their peak.

在让 Facebook 为一个页面提供 RSS 提要的过程中挣扎很久,我的无用程度似乎已经达到了顶峰。

JSON seems to work absolutely dandy for me and so to this end I am curious as to whether there are any plugins that would import FB JSON as blog posts since it seems that RSS XML's either going away or seriously b0rked. Can anyone recommend any plugins to accomplish this?

JSON 似乎对我来说非常有用,因此为此我很好奇是否有任何插件可以将 FB JSON 导入为博客文章,因为 RSS XML 似乎要么消失要么被严重破坏。 任何人都可以推荐任何插件来实现这一目标吗?

采纳答案by ylluminate

Unfortunately after having suspicions confirmed, Facebook has killed this feature. A solution has been recommended here: https://stackoverflow.com/a/9778635/320681

不幸的是,在怀疑得到证实后,Facebook 取消了此功能。这里推荐了一个解决方案:https: //stackoverflow.com/a/9778635/320681

回答by Andrea Dotta

Another way to import facebook post in your blog is to use http://www.social2blog.com/but work only with facebook page. Otherwise you can create your own php script:

在您的博客中导入 facebook 帖子的另一种方法是使用 http://www.social2blog.com/但只能使用 facebook 页面。否则,您可以创建自己的 php 脚本:

回答by hawbsl

I have a non-programming answer to this old question. I'm adding it here in case it helps. OK, I started looking for complicated programming solutions involving SDKs and APIs or even plain old WordPress plugins. But it's frustrating, especially as there's a lot of out of date information out there.

我对这个老问题有一个非编程的答案。我在这里添加它以防万一。好的,我开始寻找复杂的编程解决方案,包括 SDK 和 API,甚至是普通的旧 WordPress 插件。但这令人沮丧,尤其是因为那里有很多过时的信息。

It's really simple. Just use IFTTT. I had to create two recipes, one for normal FB posts and one for FB photo posts. But both worked right away, the FB posts appeared as plain WP posts in my WordPress dashboard, absolutely no problem and surprisingly simple.

这真的很简单。只需使用IFTTT。我必须创建两个食谱,一个用于普通 FB 帖子,另一个用于 FB 照片帖子。但是两者都立即起作用,FB 帖子在我的 WordPress 仪表板中显示为普通的 WP 帖子,绝对没有问题,而且非常简单。

回答by Sudhir Bastakoti

Do you mean something like this: FeedWordPress. It syndicates content from feeds that you choose into your WordPress weblog. Hope it helps

你的意思是这样的:FeedWordPress。它将您选择的提要中的内容联合到您的 WordPress 博客中。希望能帮助到你

回答by Kasun Karunathilake

Create an app then get proper permission from page admin to read the facebook page feed.Refer this documentation.

创建一个应用程序,然后从页面管理员那里获得适当的权限以读取 facebook 页面提要。请参阅此文档。

Problem with this method is you have to run a cron job and pull the data from Facebook.

这种方法的问题是你必须运行一个 cron 作业并从 Facebook 中提取数据。