Is there any script based on ZF, which supports normal user signup/login system, along with user authentication throuh Twitter and Facebook.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Have a look at An example of OpenID, Facebook and Twitter authentication in Zend Framework 1.11. Altough, the application does not show how to use normal user authentication (it was not the purpose of it) it shows one way of using OpenID (Google, Yahoo, MyOpenId, AOL, OpenId) as well as Facebook Connect and Twitter Oauth for authentication of users. This is more difficult to do in ZF than regular user authentication.
Don't know about twitter but you can use the Facebook PHP SDK easily enough in a ZF project. There's an excellent example in the SDK "examples" folder.
My approach is to
Bootstrap.php
file, adding it toZend_Auth
if applicableBecause the Facebook auth token is cookie based, both your server-side code and client-side JS can access it.
Edit Twitter libraries here - http://dev.twitter.com/pages/libraries#php