[PORTUGUÊS]
Após autenticar, faça solicitações de informações sobre usuários/páginas/grupos do Facebook.
Para autenticar use: Opauth -> https://github.com/uzyn/cakephp-opauth
- 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')"
- Faça suas pesquisas utilizando:
$this->FacebookApiUsuario->getInfo()
[ENGLISH]
After logging in, make requests for information about users/pages/groups Facebook.
To authenticate use: Opauth -> https://github.com/uzyn/cakephp-opauth
- 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')"
- Do your search using:
$this->FacebookApiUsuario->getInfo()