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

Only getting minimal fields sent to /callback #211

Closed
rjcoupe opened this issue Jul 17, 2015 · 1 comment
Closed

Only getting minimal fields sent to /callback #211

rjcoupe opened this issue Jul 17, 2015 · 1 comment

Comments

@rjcoupe
Copy link

rjcoupe commented Jul 17, 2015

provider :facebook, ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_APP_SECRET'], scope: ['email', 'public_profile']

The authorization appears to succeed, but I only receive basic fields in the callback payload:

{
    "provider":"facebook",
    "uid":<redacted>,
    "info":{
        "name":<redacted>,
        "image":<redacted>,
        "credentials":{
            "token":<redacted>,
            "expires_at":1442319308,
            "expires":true
        },
        "extra":{
            "raw_info":{
                "name":<redacted>,
                "id":<redacted>
            }
        }
    }
}

I can't find anything wrong with my code, judging by docs I've found and followed. Is this a bug?

@simi
Copy link
Owner

simi commented Jul 17, 2015

You need to provide info_fields parameter with needed fields. See info_fields in README.md. Fix to get email by default will be probably merged soon

@simi simi closed this as completed Jul 17, 2015
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