title: Facebook Get locale
body: <p>What am I doing wrong? - I'm trying to grab the user's locale from a facebook iframe tab to display relevant content based on location.</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
          (function (d, s, id) {
              var js, fjs = d.getElementsByTagName(s)[0];
              if (d.getElementById(id)) return;
              js = d.createElement(s); js.id = id;
              js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&amp;appId=" + 'MY APP ID';
              fjs.parentNode.insertBefore(js, fjs);
          } (document, 'script', 'facebook-jssdk'));
  
          window.fbAsyncInit = function () {
              if (location.protocol == 'https:') {
                  FB._https = true;
              };
              FB.init({
                  appId: 'MY APP ID',
                  status : false,
                  cookie : false,
                  xfbml  : true,
              width: 810
              });
              FB.Canvas.scrollTo(0,0);
              FB.Canvas.setAutoGrow();
          }
  &lt;/script&gt;
  &lt;script&gt;
  FB.login(function(response) {
      if (response.authResponse) {
          if ($.data.get('user').get('locale') = "en_GB") {
              $("a").attr("href", "URL");
          }
      }
  });
  &lt;/script&gt;
  </code></pre>