li3_socialauth icon indicating copy to clipboard operation
li3_socialauth copied to clipboard

have error with facebook adapter!

Open bodninja opened this issue 11 years ago • 1 comments

Hi my friend!

After long times programming, i am find the solution. but....

When I define scope for facebook, the adapter don´t read config file. After hours, i´m change the the adapter file (facebook.php) to:

original: public function __construct(array $config = array()) { $config += array('tokenKey' => 'oauth_token', 'scope' => array('email')) ; parent::__construct($config) ; }

my solution: public function __construct(array $config = array()) { $config += array('tokenKey' => 'oauth_token', 'scope' => array(MYSCOPES)) ; parent::__construct($config) ; }

When I analyzed the code, I realized that I downloaded the latest version of the Lusitanian, they changed the variable "scope" to "scopes"

this influences somewhere in the code?

thanks!

bodninja avatar Feb 21 '14 05:02 bodninja

You're right ! I have to change the name. Thank's for the hint, i'll do that today.

Regards, Sebastien

On 2/21/14, Antônio Baptista Júnior [email protected] wrote:

Hi my friend!

After long times programming, i am find the solution. but....

When I define scope for facebook, the adapter don´t read config file. After hours, i´m change the the adapter file (facebook.php) to:

original: public function __construct(array $config = array()) { $config += array('tokenKey' => 'oauth_token', 'scope' => array('email')) ; parent::__construct($config) ; }

my solution: public function __construct(array $config = array()) { $config += array('tokenKey' => 'oauth_token', 'scope' => array(MYSCOPES)) ; parent::__construct($config) ; }

When I analyzed the code, I realized that I downloaded the latest version of the Lusitanian, they changed the variable "scope" to "scopes"

this influences somewhere in the code?

thanks!


Reply to this email directly or view it on GitHub: https://github.com/scharrier/li3_socialauth/issues/7

scharrier avatar Feb 21 '14 08:02 scharrier