title: Saving user location, bio, website upon signup through Facebook - Omniauth Facebook
body: <p>Within my rails app, when someone signs up with Facebook, I'm trying to grab their email, name, image, location, bio, website.</p>
  
  <p>I'm using <a href="https://github.com/mkdynamic/omniauth-facebook" rel="nofollow">Omniauth Facebook</a> Here is the <a href="https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview" rel="nofollow">guide I followed</a>.</p>
  
  <p>The signup works smoothly, I get no errors in the browser or in my logs, but the location, bio, and website all come back as nill. <strong>What could be causing this? How can I fix this?</strong></p>
  
  <p><strong>Am I allowed to call on user_location, user_about_me, user_website?</strong></p>
  
  <p><a href="https://developers.facebook.com/docs/facebook-login/permissions/v2.2?locale=en_GB#reference" rel="nofollow">https://developers.facebook.com/docs/facebook-login/permissions/v2.2?locale=en_GB#reference</a></p>
  
  <p><strong>Gem file</strong>:</p>
  
  <pre><code>gem 'devise'
  gem 'omniauth-facebook'
  </code></pre>
  
  <p><strong>User.rb</strong></p>
  
  <pre><code>  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.name = auth.info.name  
      user.image = auth.info.image 
      user.location = auth.info.user_location 
      user.about = auth.info.user_about_me 
      user.website = auth.info.user_website 
    end
  end
  </code></pre>
  
  <p><strong>Devise.rb initializer</strong></p>
  
  <pre><code>  config.omniauth :facebook, "APP_ID", "APP_SECRET",
            scope: 'email, user_location, user_about_me, user_website',
                    strategy_class: OmniAuth::Strategies::Facebook
  </code></pre>
  
  <p>Any help would be much appreciated!</p>