将Facebook帖子嵌入到wordpress网站是行不通的

内容来源于 Stack Overflow,并遵循CC BY-SA 3.0许可协议进行翻译与使用

  • 回答 (3)
  • 关注 (0)
  • 查看 (108)

我想将facebook帖子嵌入到wordpress网站。所以我创建了facebbok应用程序并获得APP ID和APP Secret。但是当我尝试使用Graph API获取Access令牌时,我无法得到它这里是它的屏幕截图http://prntscr.com/jqyvp7

提问于
用户回答回答于

you can manually embed Facebook status posts in WordPress. However, this solution is not as neat as using the official plugin.

First thing you need to do is get the URL of the public post you want to embed. Go to Embedded Posts page on Facebook Developers site. Paste the URL of the Facebook status and press the get code button.

A popup window would appear with two options to choose from. The first option is to add the HTML5 code. Copy the first piece of code and paste in your theme’s header.php file just below the<body>. You will only have to paste this once.

After that simply copy the second code and paste it where you want to embed the post status in your WordPress post or page.

WordPress by default has built-in support for various oEmbed providers like Twitter, Youtube, etc. We hope that Facebook enables the oEmbed protocol, so this becomes easier in the future.

Engineering Jobs

用户回答回答于

尝试使用名为“Facebook Embeds Collection”的wordpress插件,它可以帮助您轻松地将12个不同的facebook小部件集成到您的wordpress帖子,页面和模板中:

https://wordpress.org/plugins/centralhubb-facebook-embeds-collection/

它包含新的2018版Facebook Embedded Post插件

您不需要访问令牌来使用'Embedded Post Plugin',您只需要一个facebook api_id和我提供的链接中的插件。

您可以在此处查看该插件的演示,它将为您提供帮助:

http://demo.centralhubb.com/wp-admin/admin.php?page=facebook-embeds-collection

用户回答回答于

在WordPress中嵌入facebook帖子,你不需要任何插件,只需点击任何facebook帖子的角落并点击嵌入,获取代码并将其粘贴到任何帖子的文本区域的代码中,或者你可以也使用html小部件嵌入侧边栏。

扫码关注云+社区

领取腾讯云代金券