Overview

Namespaces

  • None
  • PHP

Classes

  • BaseFacebook
  • Facebook

Exceptions

  • FacebookApiException
  • Overview
  • Namespace
  • Class
  • Tree

Class Facebook

Extends the BaseFacebook class with the intent of using PHP sessions to store user ids and access tokens.

BaseFacebook
Extended by Facebook
Located at facebook.php
Methods summary
public
# __construct( Array $config )

Identical to the parent constructor, except that we start a PHP session to store the user ID and access token if during the course of execution we discover them.

Identical to the parent constructor, except that we start a PHP session to store the user ID and access token if during the course of execution we discover them.

Parameters

$config
Array
the application configuration.

See

BaseFacebook::__construct in facebook.php
protected
# setPersistentData( string $key, array $value )

Provides the implementations of the inherited abstract methods. The implementation uses PHP sessions to maintain a store for authorization codes, user ids, CSRF states, and access tokens.

Provides the implementations of the inherited abstract methods. The implementation uses PHP sessions to maintain a store for authorization codes, user ids, CSRF states, and access tokens.

Parameters

$key
string
$value
array
protected mixed
# getPersistentData( string $key, boolean $default = false )

Get the data for $key, persisted by BaseFacebook::setPersistentData()

Get the data for $key, persisted by BaseFacebook::setPersistentData()

Parameters

$key
string
The key of the data to retrieve
$default
boolean
The default value to return if $key is not found

Returns

mixed
protected
# clearPersistentData( string $key )

Clear the data with $key from the persistent storage

Clear the data with $key from the persistent storage

Parameters

$key
string
protected
# clearAllPersistentData( )

Clear all data from the persistent storage

Clear all data from the persistent storage

protected
# constructSessionVariableName( $key )
Methods inherited from BaseFacebook
_graph(), _oauthRequest(), _restserver(), api(), base64UrlDecode(), destroySession(), errorLog(), establishCSRFTokenState(), getAccessToken(), getAccessTokenFromCode(), getApiUrl(), getAppId(), getAppSecret(), getApplicationAccessToken(), getCode(), getCurrentUrl(), getFileUploadSupport(), getLoginStatusUrl(), getLoginUrl(), getLogoutUrl(), getMetadataCookie(), getMetadataCookieName(), getSignedRequest(), getSignedRequestCookieName(), getUrl(), getUser(), getUserAccessToken(), getUserFromAccessToken(), getUserFromAvailableData(), isVideoPost(), makeRequest(), parseSignedRequest(), setAccessToken(), setAppId(), setAppSecret(), setFileUploadSupport(), shouldRetainParam(), throwAPIException(), useFileUploadSupport()
Constants inherited from BaseFacebook
VERSION
Properties summary
protected static array $kSupportedKeys array('state', 'code', 'access_token', 'user_id')
#
Properties inherited from BaseFacebook
$CURL_OPTS, $DOMAIN_MAP, $DROP_QUERY_PARAMS, $accessToken, $appId, $appSecret, $fileUploadSupport, $signedRequest, $state, $user
Facebook PHP SDK (v.3.1.1) API documentation generated by ApiGen 2.5.0