PHP SDK Properties
From Facebook Developer Wiki (FbDevWiki.com)
(Redirected from PHP SDK properties)
Here is a list of the properties of the Facebook
object that's created by the constructor method. For the properties that have no getter or setter, they are likely public and can be accessed directly.
The table assumes you constructed the Facebook object like this:
require 'facebook.php'; $facebook = new Facebook(array( 'appId' => 'YOUR APP ID', 'secret' => 'YOUR API SECRET', ));
Property | Type | Default | Setter | Getter | Description |
---|---|---|---|---|---|
Facebook::VERSION | const string | not available | Facebook::VERSION |
Version being used of the PHP SDK (READ ONLY) | |
Facebook::CURL_OPTS | Array | Facebook::CURL_OPTS |
associative array with settings used for curl | ||
Facebook::DOMAIN_MAP | Array | Facebook::DOMAIN_MAP |
urls used to communicate with Facebook | ||
appId | string | $facebook.setAppId($appId) |
$facebook.getAppId() |
application ID (set with constructor) | |
apiSecret | string | $facebook.setApiSecret($apiSecret) |
$facebook.getApiSecret() |
API secret (set with constructor) | |
session | Array | setSession | $facebook.getSession() |
user session, if one is available | |
signedRequest | string | not available | $facebook.getSignedRequest() |
data from the signed_request token | |
sessionLoaded | boolean | false |
$facebook->sessionLoaded |
Indicates whether session is already loaded | |
cookieSupport | boolean | false |
$facebook.setCookieSupport($cookieSupport) |
$facebook.useCookieSupport() |
whether session data is saved via cookies |
baseDomain | string | '' |
$facebook.setBaseDomain($domain) |
$facebook.getBaseDomain() |
whether session data is saved via cookies |
fileUploadSupport | boolean | false |
$facebook.setFileUploadSupport($fileUploadSupport) |
$facebook.useFileUploadSupport() |
Indicates if the CURL based @ syntax for file uploads is enabled |