\FacebookAPI
Created by PhpStorm.
User: Julian Scheuchenzuber <js@lvl51.de>
Date: 22.08.15
Time: 15:54
Synopsis
class FacebookAPI
{
- // methods
- private void __construct()
- private void __clone()
- public static FacebookAPI inst()
- public ArrayList requestPosts()
- public ArrayList requestTimelinePics()
- public void syncPosts()
- public void syncPics()
- public ArrayList|DataList|SS_Limitable getPosts()
- public ArrayList|DataList|SS_Limitable getPics()
- private mixed makeLinks()
Members
private
- $albumId
—
int
The ID of the timeline photos album - $api
—
\Facebook\Facebook
API instance
protected
- $instance
—
FacebookAPI
Singleton instance
Methods
private
- __construct() — Creates a new instance of the Facebook PHP SDK.
- __clone()
- makeLinks() — Looks for links in a string and "activates" them.
public
- getPics() — Gets timeline pics. Suitable for usage in templates.
- getPosts() — Gets timeline posts. Suitable for usage in templates.
- inst() — Singleton main method
- requestPosts() — Get all feed post entries from the page as an array with the fields "Message", "Date", "Likes" and "ImageURL" (if available).
- requestTimelinePics() — Get all images from the timeline picture album as an array with the fields "ID", "Name" and "Source".
- syncPics() — Fetches all timelice pictures from the API and stores it locally.
- syncPosts() — Fetches all timeline posts from the API and stores it locally.