I am trying to fetch Facebook info on my users for an iOS app. I am able to fetch everything on their public_profile, but, when i try to fetch the user_email, the app crashes because it is trying to unwrap a nil optional. I should be able to fetch user_email without a problem, as Facebook does not require specific authorization. Any suggestions?
Asked
Active
Viewed 81 times
1
-
Post your current code, please! – kittykittybangbang Aug 03 '15 at 03:40
-
1Are you using Facebook SDK v4.4? There were some adjustments made regarding getting the email upon login. Possible duplicate: http://stackoverflow.com/questions/31314124/get-email-and-name-facebook-sdk-v4-4-0-swift – Caleb Aug 03 '15 at 03:45
-
if let user_email = data["user_email"] as? String {} – eliasRuizHz Aug 03 '15 at 03:47
-
You have to request for the email. http://stackoverflow.com/questions/31312744/not-getting-email-and-public-profile-using-facebook-4-4-0-sdk/31331502#31331502 – Ashish Kakkad Aug 03 '15 at 04:15