chathura86 / zf2-facebook-module
Zend Framework 2 module providing integration with Facebook php-sdk
dev-master
2013-08-06 20:10 UTC
Requires
- php: >=5.3.3
- zendframework/zendframework: 2.*
Requires (Dev)
- zendframework/zendframework: dev-master
This package is not auto-updated.
Last update: 2025-03-10 17:13:11 UTC
README
I'll update this once it is suitable for general use. How ever feel free to use it if you know what you are doing.
Introduction
FacebookBundle is simple integration with Facebook php-sdk library.
Requirements
- Zend Framework 2 (https://github.com/zendframework/zf2). Tested on Zend Framework 2.0.0beta4.
- PHP 5.3 or gather
Installation
- On your
composer.json
add:
{ "require": { "chathura86/zf2-facebook-module": "dev-master" } }
- Run
php composer.phar install
- Open
configs/application.config.php
and add'FacebookBundle'
to your'modules'
parameter.
How to setup
<?php // configs/autoload/local.php return array( // other configurations 'FacebookBundle' => array( 'appId' => 'your_app_id', 'secret' => 'your_secret', ) ); ?>
How to use
// in controller $this->getServiceLocator()->get('facebook') // Facebook object