title: How to use "Continue as {name}" Facebook button with Rails + Devise + Oauth?
body: <p>I've successfully added a <strong>Sign in with Facebook</strong> feature to my Rails 5 app with Devise and Omniauth.</p>
  
  <p>Instead of my static button, I'd like to implement Facebook's embed "Continue as {name}" <a href="https://developers.facebook.com/docs/facebook-login/web/login-button/" rel="nofollow noreferrer">login button</a>. In their documentation they'll produce the following code for you to implement:</p>
  
  <pre><code>&lt;div class="fb-login-button" data-size="large" data-button-type="continue_with" data-auto-logout-link="false" data-use-continue-as="true"&gt;&lt;/div&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/fwfUa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fwfUa.png" alt="First button is Facebook&#39;s own and second one is mine"></a></p>
  
  <p>Just implementing it like that obviously doesn't work. I'd really like to be able to handle it in a way where I can specify it to direct to my <code>user_facebook_omniauth_authorize_path</code>. How do I do that?</p>
  
  <p>I've implemented Facebook SDK on the website.</p>
  
  <p>Thank you in advance. Your help is much appreciated! :-)</p>