Search code examples
phpjavascriptfacebookfbjs

Facebook stream publish dialog buttons event not working in IE


Facebook fb.ui for feed prompts fine, however when clicked on Share or Cancel button, the event is not triggered in IE only, works fine in other browsers such as Chrome, Firefox, etc.

Here is the code:

function showStreamPublish()
{
    FB.ui(
    {
    'method': 'feed',
    'name': 'xxxxxx',
    'link': 'xxxxxxxxxxxxxxx',
    'picture': 'xxxxxxxxxxxx',
    'description': 'xxxxxxxxxxxx',
    'app_id': 'xxxxxxxxxxxxxx'
    },
    function(response)
    {
        alert(response); //**** this does not work in IE
    });
}

Any workaround this or whether this is facebook bug ?


Solution

  • From the comments above you should have a channel file. Also, for IE compatibility, you may need to set a privacy header (aka p3p). See http://www.admon.org/how-to-implement-p3p-http-headers-for-cross-site-cookies/