Social Seo Facebook Posts 响应式时间线 PHP OOP 类
需要 PHP 5.3x 和 Curl 或 url fopen。它使用 PHP 5 OOP 进行编码
使用 facebook 作为您网站上的新闻提要。吸引访问者的注意力,让他们将您的帖子分享到 twitter、Google+、LinkedIn 或引导他们到您的 Facebook 帐户,以便他们关注您
免責聲明
此时,需要审查在 facebook 开发者网站上制作的应用程序。
自从剑桥丑闻以来,facebook 不断更新他们的 API,所以在他此刻,如何获取 APP ID 和 Token 的过程不时发生变化。所以首先在这里创建你的应用程序 https://developers.facebook.com 或者使用我的 Page Token wizzard。
页面令牌
用 我的应用程序创建页面识别码,您需要输入您的购买代码,然后单击 GET FACEBOOK TOKEN
WordPress 插件版本可以是 在这里找到
您只能使用 pages (如果您是该页面的管理员).要测试您的 Facebook 页面是否可以使用,请在此处尝试 https://developers.facebook.com/tools/explorer/ 并更改我 在您的 Facebook 名称或页面 ID 中。
- 所有帖子都设置为丰富的摘要以获得更好的 SEO。
- 在手机上效果很好,对于图像和视频,它使用 lazyload 来加快速度
(向下滚动时,将出现高分辨率图像) - 此外,还将缓存 json 源。
主要特点
- 颜色是自动的 (链接和图标)根据您自己的 css 样式设置
- 将您的 Facebook 用作您的新闻项目以获得更多曝光率
- 然后,任何 Facebook 管理员都可以更新 Facebook 帖子
- 在移动设备上看起来很棒
- 播放内联 youtube、soundcloud 和 facebook 视频(原生 html5)
- 自动启动停止 youtube 视频或 html5 视频
- 可以集成到您自己的 CMS 中
- 支持阿拉伯语、波斯语和希伯来语(从右到左)
带有多个时间线的演示(WP 插件)
实时预览真实客户 在我的自己的网站 (自定义 CMS) ,Apianotuning 网站
额定值
更改日志
Updated to php 8.2 (feb 13 2023)
Changed News Filter disable to show posts with image and no text and keep the rich snippets (may 19 2022)
Updated to facebook APi 13.0 , fix rich snippet and small css fix (apr 9 2022)
Updated to facebook APi 10.0 (apr 26 2021)
Fixed playback facebook video's on mobile and desktop (jan 5 2021)
Fixed embedded youtube (dec 2 2020)
Fixed share buttons (oct 11 2020)
Updated to facebook APi 8.0 and added share on linkedin (sept 19 2020)
Added nofollow noopener for more security for target blanks links (jun 11 2020)
Updated to facebook APi 6.0, fixed some small errors and updated the rich snippets (mar 24 2020)
Updated to facebook APi 5.0 and if you use a Pagetoken the name from the comments will be shown again, Removed the share to linkedin (since that doesn't work anymore) and added a share to pinterest link (nov 25 2019)
Updated to facebook APi 4.0 (sep 20 2019)
Fixed some notices and added support for soundcloud and vimeo (may 10 2019)
Updated to facebook API 3.3, a lot of changes has been made (may 09 2019)
Removed share to google plus (mar 09 2019)
Fix for bug from the facebook API (jan 31 2019)
Changed the rich snippets to newsarticles (dec 09 2018)
Updated date settings with month and year, API 3.2 and sorting comments (nov 27 2018)
Updated so accestoken can be used if app id and token doesn't work (oct 10 2018)
Updated to api 3.1 and fixed embedded video playback (aug 27 2018)
Updated to api 2.12, updated curl for slower servers and solved some missing fields problems (feb 28 2018)
Since in API 2.11 (November 7, 2017) I cannot retrieve the name form the comments, so I removed the name from the comments if API 2.11 is used (but still will get the message from the comments), also I made all profile images rounded the same way facebook does (nov 19 2017)
Version 2.1. Changed the lazyload to blazy.js for more speed. Also skipped the small preview images for more speed and removed the youtube API. And updated the index.php with the latest jquery and the readme.txt (oct 28 2017)
Updated to api 2.10 (sep 28 2017)
Updated to facebook API 2.9 (jun 6 2017)
Updated to facebook API 2.8 and fixed missing image with shared event (apr 12 2017)
Version 2.0. Updated to facebook API 2.7 and changed the the html5 mp4 video into the embedded facebook player version (oct 4 2016)
Version 2.0. Updated to facebook API 2.6 and changed the json call, improved rich snippets and added comments on comments (may 5 2016)
Fixed start stop youtube iframe, fixed setShowImages and added setDebug (for testing the json url) (feb 23 2016)
Updated to facebook API 2.5 (jan 21 2016)
Updated to facebook API 2.4 (jul 30 2015)
First 1.0 release (jun 18 2015)