Download the PHP package neha2601/facebook-cake-component without Composer
On this page you can find all versions of the php package neha2601/facebook-cake-component. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download neha2601/facebook-cake-component
More information about neha2601/facebook-cake-component
Files in neha2601/facebook-cake-component
Package facebook-cake-component
Short Description Facebook plugin for CakePHP
License MIT
Homepage https://github.com/Neha2601/facebook-cake-component
Informations about the package facebook-cake-component
Facebook Api plugin for CakePHP 3
This plugin provides basic support for use FACEBOOK API services in your CakePHP 3 application.
Requirements
This plugin has the following requirements:
- CakePHP 3.0.0 or greater.
- Facebook PHP_SDK 5.
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
Configuration
To use a Facebook config file, you should have a global.php file in your config folder. The default configurations are as below and defined in config/api.php.
and load below file in your bootstrap.php.
In your controller,load facebook component into your overridden initialize method like this.
Usage
@link https://developers.facebook.com/docs/php/howto/example_facebook_login. You just need to load facebook component in controller. For example,
You can define your logic in your action function as per your need. For above example, You can redirect them to a your page.
The URL for above example will be http://yourdomain.com/SocialDetails/login
. You can customize it by setting the routes in APP/config/routes.php
.
Simple :)