Registry / auth / facebook-php-sdk

facebook-php-sdk

JSON →
library3.2.3phppackagistunverified

Facebook PHP SDK for integrating with the Facebook Graph API.

composer require facebook/php-sdk
INSTALL
IMPORT
SIG · FACEBOOK-PHP-SDK
F
facebook-php-sdk
authphpv3.2.3
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 Facebook SDK and generate login URL

use Facebook\Facebook; $fb = new Facebook([ 'app_id' => 'your-app-id', 'app_secret' => 'your-app-secret', ]); $helper = $fb->getRedirectLoginHelper(); echo '<a href="' . $helper->getLoginUrl() . '">Login</a>';
Debug
Known issues
breakingThis SDK is archived and no longer maintained; use the official Facebook PHP SDK v5+.
fix
Replace with facebook/graph-sdk package.
affects: >=3.0.0
Upgrade
Version history
3.2.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
22
OpenAI (training)
1
Resources
facebook-php-sdk — pip install facebook-php-sdk · libregistry