Sunday, December 2, 2012

[Rails] Re: Facebook omniauth nil object

thanks for your answer.
I finally managed to find the problem.

omniauth['extra']['user_hash']['id'] ? uid =
omniauth['extra']['user_hash']['id'] : uid = ''


should be

omniauth['info']['id'] ? uid =
omniauth['info']['id'] : uid = ''

of course, all the other

"['extra']['user_hash']" parts are now "['info']" due to API changes.

soichi

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate