PHPackages                             twibs/zf2-facebook - 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. twibs/zf2-facebook

ActiveLibrary

twibs/zf2-facebook
==================

Zend Framework 2 Module that allows easy integration the Facebook SDK for PHP

0.0.1(11y ago)03831ApachePHPPHP &gt;=5.4

Since Aug 28Pushed 10y ago1 watchersCompare

[ Source](https://github.com/twibs/facebook)[ Packagist](https://packagist.org/packages/twibs/zf2-facebook)[ Docs](https://github.com/Vibre/facebook)[ RSS](/packages/twibs-zf2-facebook/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Facebook SDK ZF2 Module
=======================

[](#facebook-sdk-zf2-module)

[![Latest Stable Version](https://camo.githubusercontent.com/7043fc5b99cae2edca39710df7ddec994000f646b7f7b1f2b6b865b67ec15053/68747470733a2f2f706f7365722e707567782e6f72672f74776962732f7a66322d66616365626f6f6b2f762f737461626c652e737667)](https://packagist.org/packages/twibs/zf2-facebook)[![Total Downloads](https://camo.githubusercontent.com/e1d2a5d1b86e9e200411bd5e1a6155eb5405abb4d31b92c8e75019bd4afbe712/68747470733a2f2f706f7365722e707567782e6f72672f74776962732f7a66322d66616365626f6f6b2f646f776e6c6f6164732e737667)](https://packagist.org/packages/twibs/zf2-facebook)[![Latest Unstable Version](https://camo.githubusercontent.com/0fa60cd63b99685251a534e21cb5ca520c5c87bb8d57ec04c31ee67f1dc2cae8/68747470733a2f2f706f7365722e707567782e6f72672f74776962732f7a66322d66616365626f6f6b2f762f756e737461626c652e737667)](https://packagist.org/packages/twibs/zf2-facebook)[![License](https://camo.githubusercontent.com/0fd056fbab65063c20efbf60fac52a4d4212092d03c2fed1189b2958fd16f85b/68747470733a2f2f706f7365722e707567782e6f72672f74776962732f7a66322d66616365626f6f6b2f6c6963656e73652e737667)](https://packagist.org/packages/twibs/zf2-facebook)

Introduction
------------

[](#introduction)

This module provides a simple wrapper for the Facebook SDK for PHP. It registers the Facebook service builder as a service in the ZF2 service manager, making it easily accessible anywhere in your application.

Installation
------------

[](#installation)

Install the module using Composer into your application's vendor directory. Add the following line to your `composer.json`. This will also install the Facebook SDK for PHP.

```
{
    "require": {
        "facebook/facebook-sdk-php-zf2": "dev-master"
    }
}
```

Configuration
-------------

[](#configuration)

Enable the module in your `application.config.php` file.

```
return array(
    'modules' => array(
        'Facebook'
    )
);
```

Copy and paste the `facebook.local.php.dist` file to your `config/autoload` folder and customize it with your credentials and other configuration settings. Make sure to remove `.dist` from your file. Your `facebook.local.php` might look something like the following:

```
