Skip to content

mak001/silverstripe-facebook-feed

Repository files navigation

SilverStripe Facebook feed

Build Status codecov

Overview

The Facebook feed module uses Facebook's php sdk to get a page's feed.

Requirements

Installation

composer require mak001/silverstripe-facebook-feed

Add app_id, app_secret, and default_access_token to config.yml.

Mak001\FacebookFeed\FacebookFeed:
  app_id: XXX
  app_secret: YYY
  default_access_token: ZZZ

The default limit can also be specified in the config.yml.

Mak001\FacebookFeed\FacebookFeed:
  defaultLimit: 2

Apply the data extension to the page type you want to use the feed on in the config.yml

Page:
  extensions:
    - Mak001\FacebookFeed\FacebookFeed

Finally include the template in the layout

<% include Mak001/FacebookFeed/FacebookFeed %>