Registry / http-client / facebook-graph-sdk

facebook-graph-sdk

JSON →
library5.7.0phppackagistunverified

Facebook SDK for PHP, enabling interaction with the Facebook Graph API.

composer require facebook/graph-sdk
INSTALL
IMPORT
SIG · FACEBOOK-GRAPH-SDK
F
facebook-graph-sdk
http-clientphpv5.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 make a GET request to the Graph API.

use Facebook\Facebook; $fb = new Facebook([ 'app_id' => 'your-app-id', 'app_secret' => 'your-app-secret', 'default_graph_version' => 'v2.10', ]); $response = $fb->get('/me?fields=id,name', 'access-token');
Debug
Known issues
breakingThis SDK is deprecated and no longer maintained by Facebook.
fix
Migrate to the official Facebook Graph SDK for PHP v7 or later, or use the newer 'facebook/graph-sdk' package.
affects: >=5.0.0
Upgrade
Version history
5.7.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
22
Amazon
1
Resources
facebook-graph-sdk — pip install facebook-graph-sdk · libregistry