2017 © Pedro Peláez
 

silverstripe-module silverstripe-fb-timeline-pics

A small SilverStripe module that accesses the timeline pictures (and posts) of a Facebook page.

image

level51/silverstripe-fb-timeline-pics

A small SilverStripe module that accesses the timeline pictures (and posts) of a Facebook page.

  • Thursday, October 1, 2015
  • by JZubero
  • Repository
  • 2 Watchers
  • 2 Stars
  • 60 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 3 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Maintainer

Installation

composer require level51/silverstripe-fb-timeline-pics

If you don't like composer you can just download and unpack it to fb-timeline/ under the root of your SilverStripe project., (*1)

Setup

  1. Obtain a valid app id and secret: https://developer.facebook.com/apps
  2. Provide your app credentials and Facebook page URL segment in the "Facebook" tab of the systems settings section.
  3. Go ahead and use it in your code (example snippets):
$pics = FacebookAPI::inst()->getPics(20);
...
foreach(FacebookAPI::inst()->getPosts(6) as $post) {
    echo $post->Message . '<br>';
}

...or in the template:, (*2)

<% loop $Pics(6) %>
    $Tag<br>
<% end_loop %>

Notes

If you like to set up some continuous integration you can use the FacebookSyncTask. Crontab in combination with the sake module could be a neat approach., (*3)

0 0 * * * cd /your/silverstripe/dir && sake dev/tasks/FacebookSyncTask > /dev/null 2>&1

Troubleshooting

  • Make sure that new automatically generated folder facebook-pics/ (under the assets root) has full file access rights.

The Versions

01/10 2015

dev-master

9999999-dev

A small SilverStripe module that accesses the timeline pictures (and posts) of a Facebook page.

  Sources   Download

The Requires

 

by Julian Scheuchenzuber

01/10 2015

0.2.2

0.2.2.0

A small SilverStripe module that accesses the timeline pictures (and posts) of a Facebook page.

  Sources   Download

The Requires

 

by Julian Scheuchenzuber

30/08 2015

0.2.1

0.2.1.0

A small SilverStripe module that accesses the timeline pictures (and posts) of a Facebook page.

  Sources   Download

The Requires

 

by Julian Scheuchenzuber

29/08 2015

0.2.0

0.2.0.0

A small SilverStripe module that accesses the timeline pictures (and posts) of a Facebook page.

  Sources   Download

The Requires

 

by Julian Scheuchenzuber

24/08 2015

0.1.2

0.1.2.0

A small SilverStripe module that accesses the timeline pictures of a Facebook page.

  Sources   Download

The Requires

 

by Julian Scheuchenzuber

24/08 2015

0.1.1

0.1.1.0

A small SilverStripe module that accesses the timeline pictures of a Facebook page.

  Sources   Download

The Requires

 

by Julian Scheuchenzuber

24/08 2015

0.1.0

0.1.0.0

A small SilverStripe module that accesses the timeline pictures of a Facebook page.

  Sources   Download

The Requires

 

by Julian Scheuchenzuber