ruby on rails - OmniAuth - Facebook login not supplying email in user_info -


i'm using omniauth, , after logging in via facebook, omniauth.auth key, looks this:

user_info:    name: tim sullivan   urls:      facebook: http://www.facebook.com/...     website:    nickname: ...   last_name: sullivan   first_name: tim uid: "123456789" credentials:    token: [some token] extra:    user_hash:      name: tim sullivan     timezone: -5     gender: male     id: "123456789"     last_name: sullivan     updated_time: 2010-12-30t00:52:39+0000     verified: true     locale: en_us     link: http://www.facebook.com/...     email: tim@myemailaddress.com     first_name: tim provider: facebook 

now, according docs, email should in user_info section, isn't. is, however, in extra/user_hash section. since i'm stripping extra, it's not getting stored, later on down pipe i'm having problems. add myself, doesn't explain why it's not there in first place.

why isn't email being put user_info section? bug? undocumented change?

i think doc not date. hash before removing it.

email = omniauth["extra"]["user_hash"]["email"] 

Comments

Popular posts from this blog

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

apache - Add omitted ? to URLs -

php - How can I stop spam on my custom forum/blog? -