Facebook Feed 1-pl

Facebook Feed 1-pl

Released Jun 22, 2011 by revitalagency

Here is a quick PHP script to get the latest Post from your Facebook Feed.

Download 1kb (475 downloads)
Downloads: 475
License: GPLv2
Requires Evolution 1.0.x or greater
Compatible up to Evolution 1.0.x
Supports mysql

Here is a quick PHP script to get the latest Post from your Facebook
Feed. It will also trim the word count so you can limit the data and fit
it into your design. See your feed at
[https://graph.facebook.com/123456/feed?access_token=XXXX] , you will
need a Facebook Access Token.


This Script will:


  • Grab the 1st post from your Facebook Feeed
  • Grab the From Name
  • Grab the From ID
  • Grab the Message
  • Form the Output:
    [link to user id]User Name
    Said: [Message]
  • Limit Message output to X # of words (default = 20)

Installation Instructions

Create a snippet

paste in the PHP code

Enter your Facebook ID (from your URL) and your Access Token in to the variable locations.

Call Snippet in your template