Is there any script based on ZF, which supports normal user signup/login system, along with user authentication throuh Twitter and Facebook.
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
require_once 'facebook.php';
class My_Application_Resource_Facebook extends Zend_Application_Resource_ResourceAbstract
{
public function init()
{
$facebook = new Facebook($this->getOptions());
Zend_Registry::set('facebook', $facebook);
return $facebook;
}
}
Bootstrap.php file, adding it to Zend_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