Download the PHP package pitchanon/facebook-connect without Composer

On this page you can find all versions of the php package pitchanon/facebook-connect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package facebook-connect

Facebook Connect for Laravel

A small Laravel package that wraps the Meta (Facebook) Graph API for the common OAuth login flow, profile lookup, page posting, and "does this user like a page" checks. Works with Laravel 11 / 12 and PHP 8.2+.

The package talks to Graph API v19.0 by default over plain HTTP (Guzzle), so it does not depend on the archived facebook/graph-sdk package.

Version compatibility

Package version Laravel PHP Facebook SDK Status
^2.0 11.x, 12.x ^8.2 Graph API v19 (Guzzle client) Current
^1.0 4.x, 5.x >= 5.3 Bundled Facebook PHP SDK 3.x Maintenance

The legacy 1.x line is kept on the 1.x branch for existing Laravel 4/5 users. Critical fixes may still be backported, but new features only land on 2.x.

Installation

Latest (Laravel 11/12):

Legacy (Laravel 4/5):

The service provider and FacebookConnect facade are auto-discovered.

Publish the config file:

Then set your Meta app credentials in .env:

Usage

1. Redirect the user to Facebook

2. Handle the callback

3. Post to a user or page feed

For page posts, pass the page ID as target and use a page access token (available via FacebookConnect::getUserAccounts($userAccessToken)).

4. Check if a user likes a page

5. Verify granted permissions

6. Arbitrary Graph calls

Errors

All Graph API errors are thrown as Pitchanon\FacebookConnect\Exceptions\FacebookConnectException with the message and code returned by Meta.

Migration notes (from the old Laravel 4 version)

License

GPL-3.0-or-later. See LICENSE.


All versions of facebook-connect with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0 || ^12.0
guzzlehttp/guzzle Version ^7.8
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pitchanon/facebook-connect contains the following files

Loading the files please wait ...