title: omniauth.auth for Facebook not returning full hash and not able to successfully login with facebook
body: <p>I'm working on the facebook clone project from <a href="http://www.theodinproject.com/ruby-on-rails/final-project" rel="nofollow">http://www.theodinproject.com/ruby-on-rails/final-project</a>. </p>
  
  <p>I'm stuck with the omniauth-facebook portion, and I'm not able to successfully login with facebook. I think the problem might be due to the request.env["omniauth.auth"]. When I try to raise request.env["omniauth.auth"].to_yaml. I get the following incomplete hash. It's missing a lot of information such as first_name, last_name, gender, etc. </p>
  
  <pre><code>--- !ruby/hash:OmniAuth::AuthHash
  provider: facebook
  uid: &amp;#39;10206926404981253&amp;#39;
  info: !ruby/hash:OmniAuth::AuthHash::InfoHash
    name: Thomas Pan
    image: http://graph.facebook.com/10206926404981253/picture
  credentials: !ruby/hash:OmniAuth::AuthHash
    token: &lt;token&gt;
    expires_at: 1442277104
    expires: true
  extra: !ruby/hash:OmniAuth::AuthHash
    raw_info: !ruby/hash:OmniAuth::AuthHash
      name: Thomas Pan
      id: &lt;id&gt;
  </code></pre>
  
  <p>** Replaced some info with &lt;> for security.</p>
  
  <p>I'm using this along with devise as well. </p>
  
  <p>Everything else seems to be set up correctly as I've followed the instructions here for devise and omniauth-facebook. <a href="https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview" rel="nofollow">https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview</a></p>
  
  <p>user.rb</p>
  
  <pre><code>devise :database_authenticatable, :registerable,
     :recoverable, :rememberable, :trackable, :validatable,
     :omniauthable, :omniauth_providers =&gt; [:facebook]
  
  def self.from_omniauth(auth)
    where(provider: auth.provider, uid: auth.uid).first_or_create do |user|
      user.email = auth.info.email
      user.password = Devise.friendly_token[0,20]
      user.first_name = auth.info.first_name
      user.last_name = auth.info.last_name
      user.gender = auth.extra.raw.gender
    end  
  end  
  </code></pre>
  
  <p>devise.rb</p>
  
  <pre><code>config.omniauth :facebook, ENV['FB_APP_ID'], ENV['FB_APP_SECRET']
  </code></pre>
  
  <p>routes.rb</p>
  
  <pre><code>devise_for :users, :controllers =&gt; { :registrations =&gt; "users/registrations", :omniauth_callbacks =&gt; "users/omniauth-callbacks" }
  </code></pre>
  
  <p>omniauth_callbacks_controller.rb</p>
  
  <pre><code>def facebook
    raise request.env['omniauth.auth'].to_yaml
    end
  end
  </code></pre>
  
  <p>Any assistance would be greatly appreciated!</p>
  
  <p>Version info:
  Rails 4.2.1
  Ruby 2.0.0</p>