3

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.

molicule
  • 5,481
  • 3
  • 29
  • 40

1 Answers1

0

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
  • 6,286
  • 1
  • 24
  • 41
  • 1
    It does not work as I noted in my post the error that is generated is 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 WHEN using xfbml"? – molicule Oct 19 '10 at 20:20
  • Testing the above code works in the http://developers.facebook.com/tools/console/ which allows you to test XFBML – BeRecursive Oct 21 '10 at 14:19
  • 1
    In http://developers.facebook.com/tools/console/ the chatbox shows up, but it does not show up the friends who are currently logged in and is non-functional. It seems that fb:chat-invite is not currently usable in either iframe or xfbml but only within fbml apps (which facebook is discontinuing) – molicule Nov 01 '10 at 04:28