Facebook FXBML since Yesterday not rendering (IFRAME Canvas)

前端 未结 2 784
一个人的身影
一个人的身影 2021-01-03 08:56

since yesterday is my app not rendering the xfbml Tags (name and picture). Iam using the new JavaScript SDK inside an Canvas-Iframe Application.

Firebug tells me the

2条回答
  •  滥情空心
    2021-01-03 09:04

    Ie was getting the same issue for a long and able to resolve it just now.

    All and all you just need to wrap the entire XFBML code in JS/jQuery and parse it as shown below:

        $('#like').html('')
        if (typeof FB  != "undefined"){
            FB.XFBML.parse(document.getElementById('like'))
        }
    

    HTML code:

        

    You are done.

提交回复
热议问题