SunnysideUp\ShareThis\Model\FacebookFeedPage
FROM: http://www.acornartwork.com/blog/2010/04/19/tutorial-facebook-rss-feed-parser-in-pure-php/ EXAMPLE: //Run the function with the url and a number as arguments $fb = new TheFaceBook_communicator(); $dos = $fb->fetchFBFeed('http://facebook.com/feeds/status.php?id=xxxxxx&viewer=xxxxxx&key=xxxxx&format=rss20', 3); //Print Facebook status updates echo '<ul class="fb-updates">'; foreach ($dos as $do) { echo '<li>'; echo '<span class="update">' .$do->Description. '</span>'; echo '<span class="date">' .$do->Date. '</span>'; echo '<span class="link"><a href="' .$do->Link. '">more</a></span>'; echo '</li>'; } echo '</ul>';
SEE README on getting facebook URL for RSS Feed.
Synopsis
class FacebookFeedPage
extends DataObject
{
- // members
- private static string $table_name = 'FacebookFeedPage';
- private static array $db = ;
- private static array $has_many = ;
- private static array $many_many = ;
- // methods
- public boolean canCreate()
- public boolean canView()
- public boolean canEdit()
- public boolean canDelete()
- public FieldList getCMSFields()
- public static void all_for_one_page()
- public void ShowableItems()
- public void Fetch()
- public string stripUnsafe()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $db — array
- $has_many — array
- $many_many — array
- $table_name — string
Methods
public
- Fetch() — Fetch
- ShowableItems() — ShowableItems
- all_for_one_page()
- canCreate()
- canDelete()
- canEdit()
- canView()
- getCMSFields()
- stripUnsafe() — stripUnsafe