SimplicityMobile / Simplicity

A simple way to implement Facebook and Google login in your iOS apps.
Apache License 2.0
681 stars 66 forks source link

Facebook returns AccessToken with no E-Mail-Information #29

Closed quiKsilverItaly closed 7 years ago

quiKsilverItaly commented 7 years ago

I did this:

let facebook = Facebook()
facebook.scopes = ["email"]

Simplicity.login(facebook) { (accessToken, error) in
//do something
}

After getting the AccessToken back, I make a HTTP-Request with this URL: https://graph.facebook.com/me?access_token= and get following result:

{ "name": "My Name", "id": "10972xxxxxxx718" }

No E-Mail information.. any ideas? I also tried the default way: Simplicity.login(Facebook())

quiKsilverItaly commented 7 years ago

Sorry the next time I will use Google first.

Solution: https://graph.facebook.com/me?fields=email&access_token=[INSERT_TOKEN]

edjiang commented 7 years ago

Glad you figured it out!