Social Facebook Posts timeline PHP class
Social Seo Facebook Posts responsive timeline PHP OOP class
Requires PHP 5.3x and Curl or url fopen. It is coded using PHP 5 OOP
Use facebook as your news feed on your website. Grab the attention from your visitor and let them share your post to twitter, Google+, linkedin or lead them to your facebook account so they can follow you
Check out this video to find your username, check if it is a business page, and how to create a App ID and App Secret (token) https://www.youtube.com/watch?v=fYMtjI_sZmE
WordPress plugin version can be found here
You can only use public pages. To test if your facebook page can be used try here https://developers.facebook.com/tools/explorer/ and change me in your facebook name or page ID.
Colors, icons and fonts will be set from your default css style which you are using in your website.
All posts are set to rich snippets for better SEO.
Works great on mobile phones and for the images it uses lazyload to speed things up
(when scrolling down the high res images will appear)
Also the json feed will be cached.
- Colors are automatic (Links and icons) set based on your own css style
- Use your facebook as your news items for more exposure
- Any facebook administrator can then update the facebook posts
- Looks great on mobile devices
- Plays inline youtube, soundcloud and facebook video’s (native html5)
- Auto start stop youtube video or html5 video
- Can be integrated into your own CMS
- Support Arabic, Persian and Hebrew languages (right to left)
Demo with several timeline’s (WP plugin)
This class uses the JSON Graph API from facebook so you need an APP id and APP secret.
Check out a small video how to get an APP ID and secret ( https://www.youtube.com/watch?v=7Z2cmrljj5g )
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, 2019) 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)