Broarm\Facebook\SilverstripeFacebook
Class SilverstripeFacebook
Synopsis
class SilverstripeFacebook
extends ViewableData
{
- // members
- private static string $app_id = '';
- private static string $app_secret = '';
- private static string $page_id = '';
- protected Facebook $facebook;
- // methods
- public void __construct()
- public Facebook instance()
- public FacebookResponse get()
- public FacebookResponse getPage()
- public FacebookResponse getPageEvents()
- private static string|null get_access_token()
- public static DBField access_token_valid_until()
Hierarchy
Extends
- SilverStripe\View\ViewableData
Tasks
Line | Task |
---|---|
40 | check if token and if valid, else stop facebook operations and notify user silently |
Members
Methods
private
- get_access_token() — Get a available access token, if there is a current user with an access token return that one first
public
- __construct() — Facebook constructor.
- access_token_valid_until() — Check the access tokens date
- get() — Get a graph node
- getPage() — Get the page data
- getPageEvents() — Get a event list
- instance() — Return a facebook instance