views:

48

answers:

1

From this forum entry it appears that fb:chat-invite is not a valid xfbml tag, so to use it one needs to use serverfbml. However testing out

<fb:serverfbml>
  <script type="text/fbml">
    <fb:date t="1216170865" format="long_numeric" /> hello again
  </script>
</fb:serverfbml>

results in

<fb:serverfbml> requires the "fbml" attribute.

So how can one get the functionality of fb:chat-invite when using xfbml and the javascript sdk. Is there a way to use fbml with an FB.ui dialog? If so how would that work.

Pointers appreciated.

A: 

In the above example it should read:

<fb:serverFbml style="width: 755px;">  
     <script type="text/fbml">
        <fb:fbml>
            <fb:date t="1216170865" format="long_numeric" /> hello again
        </fb:fbml>
    </script>
</fb:serverFbml>

For a facebook chat invite try:

<fb:serverfbml>
  <script type="text/fbml">
    <fb:chat-invite msg="let's play a game!" condensed="false"/>
  </script>
</fb:serverfbml>
BeRecursive
It does not work as I noted in my post the error that is generated is <fb:serverfbml> requires the "fbml" attribute. This is because to use xfbml the FB.init calls takes a xfbml: true attribute. The problem is "how does one use <fb:serverFbml> WHEN using xfbml"?
molicule
Testing the above code works in the http://developers.facebook.com/tools/console/ which allows you to test XFBML
BeRecursive