PHP Class Facebook\InstantArticles\Client\Helper

Show file Open project: facebook/facebook-instant-articles-sdk-php Class Usage Examples

Protected Properties

Property Type Description
$facebook The main Facebook service client.

Public Methods

Method Description
__construct ( Facebook\Facebook $facebook )
create ( string $appID, string $appSecret ) : static Instantiates a new Helper object.
getPagesAndTokens ( Facebook\Authentication\AccessToken $accessToken, integer $offset ) : array Returns the set of pages and their associated tokens based on a short-lived user access token.

Method Details

__construct() public method

public __construct ( Facebook\Facebook $facebook )
$facebook Facebook\Facebook the main Facebook service client

create() public static method

Instantiates a new Helper object.
public static create ( string $appID, string $appSecret ) : static
$appID string
$appSecret string
return static

getPagesAndTokens() public method

Returns the set of pages and their associated tokens based on a short-lived user access token.
public getPagesAndTokens ( Facebook\Authentication\AccessToken $accessToken, integer $offset ) : array
$accessToken Facebook\Authentication\AccessToken A short-lived user access token.
$offset integer Offset pages API results
return array

Property Details

$facebook protected property

The main Facebook service client.
protected $facebook