dev-master
9999999-dev https://github.com/widmogrod/zf2-facebook-moduleZend Framework 2 module providing integration with Facebook php-sdk
MIT
The Requires
The Development Requires
zf2 facebook
Zend Framework 2 module providing integration with Facebook php-sdk
FacebookBundle is simple integration with Facebook php-sdk library., (*1)
P.S. Sorry for my english. If You wish to help me with this project or correct my english description - You are welcome :), (*2)
cd my/project/directory
composer.json
file with following content:``` json { "require": { "widmogrod/zf2-facebook-module": "dev-master" } }, (*3)
3. Run `php composer.phar install` 4. Open ``my/project/folder/configs/application.config.php`` and add ``'FacebookBundle'`` to your ``'modules'`` parameter. ## How to use ``` php // in controller $this->getLocator()->get('facebook') // Facebook object
php
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',
)
)
),
),
);
?>
, (*4)
Zend Framework 2 module providing integration with Facebook php-sdk
MIT
zf2 facebook