public static function getSocialProfile($site = 'facebook')
    {
        $config = \Phalcon\DI::getDefault()->getConfig()->social_config->toArray(); //dirname(dirname(dirname(__FILE__ ))) . "/config/social_config.php";
        $hybridauth = new \Hybridauth\Hybridauth($config);

        //$adapter = $hybridauth->authenticate( "Google" );
        $adapter = $hybridauth->authenticate($site);

        // request user profile
        return $adapter->getUserProfile();
    }
public static function getSocialProfile($site = 'facebook')
    {
        $config = \Phalcon\DI::getDefault()->getConfig()->social_config->toArray(); //dirname(dirname(dirname(__FILE__ ))) . "/config/social_config.php";
        $hybridauth = new \Hybridauth\Hybridauth($config);

        //$adapter = $hybridauth->authenticate( "Google" );
        $adapter = $hybridauth->authenticate($site);

        // request user profile
        return $adapter->getUserProfile();
    }
public static function getSocialProfile ( $ site = 'facebook' ) { $ config = \ Phalcon \ DI :: getDefault ( ) -> getConfig ( ) -> social_config -> toArray ( ) ; //dirname(dirname(dirname(__FILE__ ))) . "/config/social_config.php"; $ hybridauth = new \ Hybridauth \ Hybridauth ( $ config ) ; //$adapter = $hybridauth->authenticate( "Google" ); $ adapter = $ hybridauth -> authenticate ( $ site ) ; // request user profile return $ adapter -> getUserProfile ( ) ; }
cget the social profile of a users, passing its socialnetwork

@param string $site
@return Hybridauth\Entity\Profile
cget the social profile of a users passing its socialnetwork