Javascript not showing up on Facebook Application's Profile Tab
Posted
by prateekdayal
on Stack Overflow
See other posts from Stack Overflow
or by prateekdayal
Published on 2010-04-24T06:52:52Z
Indexed on
2010/06/09
17:32 UTC
Read the original article
Hit count: 348
facebook-application
|fbjs
Hi,
This may sound very noobish but I have tried to read the forum posts and docs on javascript behavior on Facebook's profile tabs. I understand that profile tabs don't support referencing external javascript but even my inline tags are not showing up on profile pages.
In fact I am trying the fbjs-swf bridge and the code needed to instantiate the swf does not show up on the page
<fb:fbjs_bridge/>
<div id="swfContainer"></div>
<script>
var swf = document.createElement('fb:swf');
swf.setId('my_swf_id');
swf.setWidth('630');
swf.setHeight('520');
swf.setSWFSrc('http://www.muziboo.com/swf/player4-2.swf');
document.getElementById('swfContainer').appendChild(swf);
document.getElementById('my_swf_id').callSWF('asMethod', 'one', 'two');
</script>
I see a swf embedded (the one for the fbjs bridge) but I don't see any script tag containing the above javascript code. What am I missing? I can see the javascript code on canvas page though
Thanks
© Stack Overflow or respective owner