PHPackages                             eclabsit/facebook-sdk-php-zf2 - 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. eclabsit/facebook-sdk-php-zf2

ActiveLibrary

eclabsit/facebook-sdk-php-zf2
=============================

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

0.0.2(9y ago)0116ApachePHPPHP &gt;=5.4

Since Aug 28Pushed 9y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

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

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

[![Latest Stable Version](https://camo.githubusercontent.com/1bea9211987fe188131207e847fa2d295a50c79d6ce329838dd760e9e2d00445/68747470733a2f2f706f7365722e707567782e6f72672f66616365626f6f6b2f66616365626f6f6b2d73646b2d7068702d7a66322f762f737461626c652e737667)](https://packagist.org/packages/facebook/facebook-sdk-php-zf2)[![Total Downloads](https://camo.githubusercontent.com/f2856fbcbcf8a5adc5381120ef98f2177f7a908b04dcdbeab6c5145e7858187a/68747470733a2f2f706f7365722e707567782e6f72672f66616365626f6f6b2f66616365626f6f6b2d73646b2d7068702d7a66322f646f776e6c6f6164732e737667)](https://packagist.org/packages/facebook/facebook-sdk-php-zf2)[![Latest Unstable Version](https://camo.githubusercontent.com/f39b6a17a12e858d198d2692ecfc3afaa5de114e37ca3061405af0e3e577a527/68747470733a2f2f706f7365722e707567782e6f72672f66616365626f6f6b2f66616365626f6f6b2d73646b2d7068702d7a66322f762f756e737461626c652e737667)](https://packagist.org/packages/facebook/facebook-sdk-php-zf2)[![License](https://camo.githubusercontent.com/1747f88cf767a7309a0f8dc4b79f6528a5a9421ef5eaa4292e0a5ee19b2dc2e8/68747470733a2f2f706f7365722e707567782e6f72672f66616365626f6f6b2f66616365626f6f6b2d73646b2d7068702d7a66322f6c6963656e73652e737667)](https://packagist.org/packages/facebook/facebook-sdk-php-zf2)

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:

```
