简体   繁体   English

网页中的 Facebook 页面内容

[英]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.请分享一些教程或参考来做这件事。

update更新

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:遵循以下流程:

  1. Go to facebook page plugin转到Facebook 页面插件
  2. Fill in the form giving the url to your page填写表格,提供您页面的网址
  3. Click on Get the code点击Get the code
  4. You will get two options to show the FB page details您将获得两个选项来显示 FB 页面详细信息

    i) using SDK i) 使用 SDK

    ii) using iFrame ii) 使用 iFrame

  5. 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.

相关问题 Facebook页面插件在网页中不起作用 - facebook page plugin not working in webpage Facebook fb页面插件在网页中不起作用 - Facebook fb-page plugin not working in webpage Facebook 页面不会自动调整为更小的内容 - Facebook page not auto resizing to smaller content 提交内容带有页面附件的表单后,保留内容网页 - keep content webpage after submitting form with file attachment on that page 如何读取页面源中未显示的网页中的内容 - how to read content in a webpage that doesn't appear in page source 加载页面后,组合键可以更改网页的外观和内容吗 - Can a key combination change the look and content of a webpage after a page is loaded 网页上的Google广告可以从当前页面中抓取内容吗? - Can a google ad on a webpage scrape content from the current page? 在页面加载完成之前,如何使用Javascript更新/修改网页内容? - How to update/modify webpage content with Javascript before page load completed? 是否有一种安全的方法可以在网页中运行 eval 并避免它访问页面的 rest 的内容? - Is there a safe way to run eval in a webpage and avoid it to access the content of the rest of the page? 如何从网页中的元素中获取内容并将其显示在我的 html 页面中? - How to take content from an element in a webpage and show it in my html page?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM