Issues with The Pogostick Yii Extension Library and Twitter Connect

Hi, I’m fairly new to the Yii Framework and have been trying to get the pogostick extension. I first tried 1.0.4 ps-yii-extensions and set it up per the instructions. The first few steps worked but when it came back to the callback URL, I keep getting this error.




PHP warning


call_user_func() expects parameter 1 to be a valid callback, function 'onUserAuthorized' not found or invalid function name


/Users/admin/Desktop/trunk/beta1/tcweb/protected/library/pogostick/behaviors/CPSComponentBehavior.php(468)


456     * owner's event raiser method. That method will then raise the event.

457     * 

458     * @param string $sName The event name

459     * @param CPSApiEvent $oEvent The event

460     */

461     public function raiseEvent( $sName, $oEvent )

462     {

463         //    Save called name...

464         $_sOrigName = $sName;

465         

466         //    Handler exists? Call it

467         if ( method_exists( $this->owner, $sName ) )

468             return call_user_func( $sName, $this->owner, $oEvent );

469     

470         //    See if pre-handler exists...

471         if ( 0 === strncmp( 'on', $sName, 2 ) )

472             $sName = substr( $sName, 2 );

473 

474         $sName{0} = strtolower( $sName{0} );

475 

476         if ( method_exists( $this->owner, $sName ) )

477             return call_user_func( $sName, $this->owner, $oEvent );

478             

479         //    Not there? Throw error...

480         return parent::raiseEvent( $sName, $oEvent );


Stack Trace

#0	

–  /Users/admin/Desktop/trunk/beta1/tcweb/protected/library/pogostick/behaviors/CPSComponentBehavior.php(468): call_user_func("onUserAuthorized", CPSTwitterApi, CPSOAuthEvent)

463         //    Save called name...

464         $_sOrigName = $sName;

465         

466         //    Handler exists? Call it

467         if ( method_exists( $this->owner, $sName ) )

468             return call_user_func( $sName, $this->owner, $oEvent );

469     

470         //    See if pre-handler exists...

471         if ( 0 === strncmp( 'on', $sName, 2 ) )

472             $sName = substr( $sName, 2 );

473 



Am I missing a parameter or not loading something?

Thanks for the help!

Robert