fbml - facebook connect publish stream on tab application -


i need kind how create publish stream dialog inside application tab.

i have code snippet on tab application: (tab.asp)

<div id="contentfooter">             <ul>                  <li><fb:share-button class="url" href="<%=getconfig("appurl")%>" /></li>             </ul>         </div> 

that code snippet above work, want thing (in javascript):

function fb_publish() {     fb.ui({         method: 'stream.publish',         message: 'blah...',         attachment: {             name: 'name....',             caption: 'join win!',             description: ('test'),             href: '<%=getconfig("appurl")%>'         },action_links: [{             text: 'play now!',             href: '<%=getconfig("appurl")%>'         }],         user_prompt_message: 'what’s on mind?'     },function(response) {         if (response && response.post_id) {             //alert('post published.');         } else {             //alert('post not published.');         }     }); } 

but sadly..., on application tab, can't put javascript (javascript not working). there way me achieve same thing javascript code inside fbml tag.

thank in advance and


Comments