PHPackages                             pizzaminded/facebook-http-foundation-bridge - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. pizzaminded/facebook-http-foundation-bridge

ActiveLibrary[HTTP &amp; Networking](/categories/http)

pizzaminded/facebook-http-foundation-bridge
===========================================

Integrates facebook/php-graph-sdk with symfony/http-foundation

1.1(6y ago)0202MITPHP

Since Aug 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/pizzaminded/facebook-http-foundation-bridge)[ Packagist](https://packagist.org/packages/pizzaminded/facebook-http-foundation-bridge)[ RSS](/packages/pizzaminded-facebook-http-foundation-bridge/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

pizzaminded/facebook-http-foundation-bridge
===========================================

[](#pizzamindedfacebook-http-foundation-bridge)

If your app uses symfony/http-foundation and facebook/php-graph-sdk, this one is for you! This Library integrates these two packages.

What are a benefits of using this package?
------------------------------------------

[](#what-are-a-benefits-of-using-this-package)

- Facebook SDK by default tries to extract everything from superglobals, using this bridge it will use your `Request` and `Session` classes. Easier to debug.
- Facebook SDK stores everything in `$_SESSION`, but it breaks when session is not started and you have to start it manually. `Session` class automatically when used. This is also a good solution when you e.g. use some more fancy session handlers like Redis or PDO.
- Persisted Data stored in session are prefixed, so there is no chance that something will override your values.

Installation
============

[](#installation)

```
composer require pizzaminded/facebook-http-foundation-bridge

```

Usage:
======

[](#usage)

```
