A simple php class to get latest Facebook and Twitter posts

I’ve just posted a simple PHP class to github (free under MIT license) that will let you fetch the latest Twitter and Facebook posts. All you need is a developer key for both, then to include the PHP file and you’re set!

$social = new SebSoSocial($twitterAcc, $facebookAcc, $numOfEach); 
foreach ($social->posts as $post) {
  echo $post->date . " - " . $post->content;
}

Full instructions and source code available here:

https://github.com/sebmaynard/sebso_social


Posted

in

by

Tags:

Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.