cakephp-plugin opauth-facebook-model
Opauth Facebook Model for CakePHP3
00f100/opauth-facebook-model
Opauth Facebook Model for CakePHP3
- Friday, April 22, 2016
- by 00F100
- Repository
- 1 Watchers
- 0 Stars
- 95 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 1 % Grown
[PORTUGUĆS], (*1)
Facebook Model para Opauth - Cakephp
ApĆ³s autenticar, faƧa solicitaƧƵes de informaƧƵes sobre usuĆ”rios/pĆ”ginas/grupos do Facebook., (*2)
DependĆŖncias
Para autenticar use: Opauth -> https://github.com/uzyn/cakephp-opauth, (*3)
InstalaĆ§Ć£o
- Crie o diretĆ³rio: app/Plugin/FacebookApi
- Clone o projeto (cd /path/to/app/Plugin/FacebookApi && git clone https://github.com/00F100/opauth-facebook-model.git ./)
- Inicie o plugin CakePlugin::load( $plugin, array('bootstrap' => true) );
- Configure o token do usuĆ”rio na configuraĆ§Ć£o: Configure::write('Opauth.Strategy.Facebook.token', '[TOKEN USUARIO]');
- importe o Model do Facebook para seu controller utilizando:
"$uses = array('FacebookApi.FacebookApiUsuario')", (*4)
- FaƧa suas pesquisas utilizando:
$this->FacebookApiUsuario->getInfo(), (*5)
[ENGLISH], (*6)
Facebook Model to Opauth - Cakephp
After logging in, make requests for information about users/pages/groups Facebook., (*7)
Dependencies
To authenticate use: Opauth -> https://github.com/uzyn/cakephp-opauth, (*8)
Installation
- Create the directory: app/Plugin/FacebookApi
- Clone the project: (cd /path/to/app/Plugin/FacebookApi && git clone https://github.com/00F100/opauth-facebook-model.git ./)
- Start plugin CakePlugin::load( $plugin, array('bootstrap' => true) );
- Configure the user token in the configuration: Configure::write('Opauth.Strategy.Facebook.token', '[TOKEN USUARIO]');
- Import the Model of Facebook for your controller using:
"$uses = array('FacebookApi.FacebookApiUsuario')", (*9)
$this->FacebookApiUsuario->getInfo(), (*10)