I’m using some barely modified sample code from Facebook to post to a user’s feed:
<a class="facebook popup"
href=""
title="Post to Facebook"
onclick="FB.ui(
{
method: 'feed',
name: 'Feedback from Customer in x',
link: 'http://localhost/User/Feedback.aspx',
picture: 'http://localhost/Images/Picture.jpg',
caption: 'Caption goes here.',
description: 'Description goes here.'
}
);
return false;">
<img alt="Post to Facebook" src="../Images/feedback-fb.png"/>
But I’m seeing a couple of problems in IE(9).
- Script error:
SCRIPT70: Permission denied all.js?_=1316190103502, line 22 character 4250. - When the user presses cancel or post, the dialog doesn’t close.
If it makes any difference, most browsers use the ‘dialog’ display type where IE in this case is using ‘popup’ for some reason. If I force it to use display: ‘popup’ then (at least) Chrome seems to work fine. Any help would be appreciated!
I had two problems. First was an IE bug in FB which has a workaround (which is the one described here). Bug: 20168. Workaround:
Found from this question here on SO.
But I also had trouble with my FB app domain – I had to configure the FB app to point to the specific subdomain I was using (x.domainname.com) otherwise in IE when I called
FB.loginI got a permission denied error and another blank screen.