Tweet event callback not working when facebook JS sdk loads


I have a website which i’ve integrated a facebook login as well as a tweet function.
It all works perfectly in Chrome, Safari and Firefox.
Though when in IE8 / IE9 / IE10 there seems to be some issues.
The below code is a snippet from the implementation of the facebook SDK. If it returns connected (you’re logged in and the sdk is running) - the tweet callback event stops firing only in IE. Otherwise if the FB code below returns as not logged in to facebook or the app, the tweet callback works just fine in all browsers.

FB.getLoginStatus(function(response) { if (response.status === 'connected') { // connected } else if (response.status === 'not_authorized') { //not logged into the app } else { //not logged into facebook } });

On a side note. Facebook requests to add a

to the body of the page. Once i deleted this div it allowed the tweet callback to work when not connected to facebook. but still nothing when you are connected.