[英]Facebook page content in webpage
I want to render each posts from my facebook page to my website, using frontend JavaScript + HTML + CSS code?我想使用前端 JavaScript + HTML + CSS 代码将每个帖子从我的 facebook 页面渲染到我的网站? Is this possible?
这可能吗?
Please share me some tutorial or reference for doing this.请分享一些教程或参考来做这件事。
So far I have trried following:到目前为止,我已尝试以下操作:
I went to following URL : https://developers.facebook.com/docs/plugins/page-plugin/我去了以下网址: https : //developers.facebook.com/docs/plugins/page-plugin/
And try to do as it mentioned for JavaScript SDK并尝试按照 JavaScript SDK 中提到的方法进行操作
Step 1: Include the JavaScript SDK on your page once, ideally right after the opening body tag.
第 1 步:在您的页面上包含一次 JavaScript SDK,最好是在打开 body 标记之后。 Step 3: Place this code wherever you want the plugin to appear on your page.
第 3 步:将此代码放置在您希望插件出现在页面上的任何位置。
I don't know why there is no Step 2我不知道为什么没有第 2 步
Also after doing this also, my page is not loaidng content.同样在这样做之后,我的页面也没有加载内容。
Follow these process:遵循以下流程:
Get the code
Get the code
You will get two options to show the FB page details您将获得两个选项来显示 FB 页面详细信息
i) using SDK i) 使用 SDK
ii) using iFrame ii) 使用 iFrame
Select any one option and follow the steps provided.选择任一选项并按照提供的步骤进行操作。
There you go.你去吧。 Your Facebook timeline in your website.
您网站中的 Facebook 时间线。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.