title: Facebook Javascript SDK - Fb.login not working on Facebook built in browser
body: <p>I Noticed that Facebook FB.Login function or Facebook Login button are no longer working on pages that are opened using Facebook's in app Browser on Android. ( When the user clicks the URL inside the Facebook App, and it opens on the app built in browser ). On Messenger it is working right.</p>
  
  <p>I don't know when this bug started. I have tested using even FB.login function and also with Facebook Login Button ( <a href="https://developers.facebook.com/docs/facebook-login/web/login-button" rel="nofollow noreferrer">https://developers.facebook.com/docs/facebook-login/web/login-button</a> ). Got the same result for both of them. It just refresh the page.</p>
  
  <p>Sample code:
      
      
      </p>
  
  <pre><code>&lt;script&gt;
  
  function LoggedFb(){
         //This is just a sample code. This code when executed from a URL opened from Facebook's Browser ( When user clicks on a url on the Facebook App ), won't run. From Chrome or other browser works fine.
      alert("got in here");
  }
  
  &lt;/script&gt;
  
  &lt;div class="fb-login-button" data-width="" data-size="large" data-button-type="continue_with" data-auto-logout-link="false" data-onlogin="LoggedFb" data-use-continue-as="false" data-scope=""&gt;&lt;/div&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>The sample above, when ran on Chrome for example, will work normal and call LoggedFb function. When a page with this code is ran from the Facebook built in browser, it will just refresh.</p>
  
  <p>I have tried also implementing FB.Login functions but it does not work either.</p>
  
  <p>I have even filled a bug report ( <a href="https://developers.facebook.com/support/bugs/456215991739392/" rel="nofollow noreferrer">https://developers.facebook.com/support/bugs/456215991739392/</a>) 
   but they say this is not a bug.</p>
  
  <p>Since this started I've seen a lot of websites with broken login buttons. Anyone else experiencing this, or have a solution?</p>
  
  <p>Thanks.</p>