Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
This package has been abandoned.
Generated on May 10, 2024 via composer

facebook/graph-sdk 5.7.0

Facebook SDK for PHP
Package summary
Share
3
issues
2
high severity
license
1
meta
1
1
low severity
license
1
1
license
1
Facebook Platform
Package created
22 Aug 2016
Version published
11 Dec 2018
Maintainers
2
Total deps
1
Direct deps
0
License
Facebook Platform

Issues

3

2 high severity issues

high
Recommendation: Validate that the package complies with your license policy
via: facebook/graph-sdk@5.7.0
via: facebook/graph-sdk@5.7.0
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: facebook/graph-sdk@5.7.0
Collapse
Expand

Licenses

Facebook Platform

Invalid
Not OSI Approved
1 Packages, Including:
facebook/graph-sdk@5.7.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of facebook/graph-sdk 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does facebook/graph-sdk do?

The Facebook SDK for PHP, also known as facebook/graph-sdk, is an open-source library that empowers developers to leverage the Facebook Platform from within their PHP applications. Equipped with this package, developers can comfortably interact with Facebook's Graph API, and integrate the many services Facebook offers, directly into their PHP applications.

How do you use facebook/graph-sdk?

Utilizing the facebook/graph-sdk is fairly straightforward. First, it requires the installation of the SDK, which is conveniently done through Composer, a popular dependency manager for PHP. Simply run composer require facebook/graph-sdk in the command line within your application's directory.

Once the library is installed, the SDK can be used with the following example PHP code:

require_once __DIR__ . '/vendor/autoload.php'; // change path as needed

$fb = new \Facebook\Facebook([
  'app_id' => '{app-id}',
  'app_secret' => '{app-secret}',
  'default_graph_version' => 'v2.10',
  //'default_access_token' => '{access-token}', // optional
]);

// Additional code for using the library

In this example, {app-id} and {app-secret} are placeholders for your Facebook app's credentials, which you receive upon registering the app with Facebook. The 'default_graph_version' is set to 'v2.10', but the version should be picked based on the specifics of the developer's application.

Where are the facebook/graph-sdk docs?

The complete documentation containing installation instructions and usage examples for the Facebook SDK for PHP can be found in the docs directory of its GitHub repository. The documentation is a valuable resource for developers looking to bootstrap their Facebook integration journey with PHP applications.