title: FB.login(null, {scope: 'publish_actions'}); crash
body: <p>Today I came across a very irritating issue. My JavaScript stopped working over night. When a user tries to create a FB action on my page there is a funky JS error:</p>
  
  <pre><code>Uncaught TypeError: Cannot read property '__wrapped' of null 
  </code></pre>
  
  <p>Error occurs in the <code>connect.facebook.net/en_GB/all.js:82</code> and it doesn't make sense. In the error chain last line called from my script is <code>FB.login(null, {scope: 'publish_actions'});</code>. There is no AJAX called to Facebook. The JS SDK crashes before it gets anywhere. What is more annoying an old version of my script on different environment works so I can't blame facebook. Do you have any idea where should I look for a problem?</p>