Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fordnox/zend_auth_adapter_facebook
Facebook oAuth2 Auth adapter for Zend Framework
https://github.com/fordnox/zend_auth_adapter_facebook
Last synced: 20 days ago
JSON representation
Facebook oAuth2 Auth adapter for Zend Framework
- Host: GitHub
- URL: https://github.com/fordnox/zend_auth_adapter_facebook
- Owner: fordnox
- Created: 2010-09-14T09:03:58.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2013-11-10T21:50:26.000Z (about 11 years ago)
- Last Synced: 2023-05-01T08:51:34.252Z (over 1 year ago)
- Language: PHP
- Homepage: http://fordnox.com
- Size: 113 KB
- Stars: 37
- Watchers: 2
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Zend_Auth_Adapter_Facebook
================This repository contains the open source Facebook oAuth2 adapter for Zend Framework that allows you to utilize the
above on your website.Author
-----Author of this software is Andrius Putna
Released under Zend Framework licenseUsage
-----The [examples][examples] are a good place to start. The minimal you'll need to
have is:..application/configs/application.ini
; ------------------------------------------
; ------------------------------------------
facebook.appId = ""
facebook.secret = ""
facebook.permissions = ""..application/controller/AuthController.php
hasIdentity()) {
$this->_helper->redirector('index', 'profile');
}$bootstrap = $this->getInvokeArg('bootstrap');
$array = $bootstrap->getOption('facebook');
$adapter = new Zend_Auth_Adapter_Facebook($array);
$token = $this->_getParam('code');if($token) {
$adapter->setToken($token);
$result = $auth->authenticate($adapter);
if ($result->isValid()) {
$access_token = $result->getIdentity();
// do your stuff with access token
} else {
print $result->getMessages();
}
} else {
$adapter->redirect();
}
}
}Feedback
--------We are relying on the [GitHub issues tracker][issues] linked from above for
feedback. File bugs or other issues [here][issues].[issues]: http://github.com/fordnox/Zend_Auth_Adapter_Facebook/issues