Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook scope more information #54

Open
tusharvikky opened this issue Oct 23, 2013 · 2 comments
Open

Facebook scope more information #54

tusharvikky opened this issue Oct 23, 2013 · 2 comments

Comments

@tusharvikky
Copy link

Hello,

I was trying to pass more than 2 scopes to facebook api. It fetches the data from FB API but its not stored in 'oneauth' session. Is there any way I can get those?

'facebook' => array( 'id' => 'XXXXXXXXXXX', 'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXX', 'scope' => 'email,offline_access,user_about_me,user_location,user_religion_politics', ),

@crynobone
Copy link
Contributor

My memory is getting rusty on this, but you should be able to retrieve the information using:

Event::listen('oneauth.logged', function($client, $user_data) {
    // it should be included in $user_data
});

Or you can recall it from

$user_data = \OneAuth\Auth\Core::session();

@tusharvikky
Copy link
Author

Sorry! None of these work :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants