Skip to content

Zend Framework 2 module adding integration with Facebook php-sdk

Notifications You must be signed in to change notification settings

jlratwil/zf2-facebook-module

 
 

Repository files navigation

Introduction

FacebookBundle is simple integration with Facebook php-sdk library.

P.S. Sory for my english. If You wish to help me with this project or correct my english description - You are welcome :)

Requirements

Installation

Simplest way:

  1. cd my/project/folder
  2. git clone git://github.com/widmogrod/zf2-facebook-module.git modules/FacebookBundle --recursive
  3. open my/project/folder/configs/application.config.php and add 'FacebookBundle' to your 'modules' parameter.

How to use

// in controller
$this->getLocator()->get('facebook') // Facebook object

How to setup

<?php
return array(

    /*
     * Is not required IF 'di->instance->facebook' config section is set.
     * User configuration layout will be propagated to 'di->instance->facebook' IF 'di->instance->facebook->config' is not set.
     */
    'FacebookBundle' => array(
        'setAppIdInHeadScript' => true,

        'appId'                => 'your_app_id',
        'secret'               => 'your_secret',
    ),

    'di' => array(
        'instance' => array(
            'alias' => array(
                'facebook' => 'Facebook',
            ),

            /*
             * Is not required, IF 'FacebookBundle' config section is set.
             */
            'facebook' => array(
                'config' => array(
                    'appId'                => 'your_app_id',
                    'secret'               => 'your_secret',
                )
            )
        ),
    ),
);
?>

About

Zend Framework 2 module adding integration with Facebook php-sdk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published