Registry / auth / facebook-php-sdk-v4

facebook-php-sdk-v4

JSON →
library5.7.0phppackagistunverified

Facebook SDK for PHP provides a set of classes for integrating with the Facebook Graph API.

composer require facebook/php-sdk-v4
INSTALL
IMPORT
SIG · FACEBOOK-PHP-SDK-V
F
facebook-php-sdk-v4
authphpv5.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Facebook
use Facebook\Facebook;

Initialize the Facebook SDK and obtain a login access token.

use Facebook\Facebook; $fb = new Facebook([ 'app_id' => 'your-app-id', 'app_secret' => 'your-app-secret', 'default_graph_version' => 'v2.10', ]); $helper = $fb->getRedirectLoginHelper(); $accessToken = $helper->getAccessToken();
Debug
Known issues
breakingThis package is archived and no longer maintained by Facebook.
fix
Migrate to the official Facebook SDK for PHP (facebook/graph-sdk) or use the newer version.
affects: >=5.0.0
Upgrade
Version history
5.7.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
24
Resources
facebook-php-sdk-v4 — pip install facebook-php-sdk-v4 · libregistry