Facebook failing on XFBML call using Yii Framework

Posted by Wenzi on Stack Overflow See other posts from Stack Overflow or by Wenzi
Published on 2010-04-21T09:29:29Z Indexed on 2010/04/21 9:33 UTC
Read the original article Hit count: 488

Filed under:
|
|
|

I have used this same call in other IFRAME Facebook apps, but it gives me nothing at all in terms of output. I am trying it on Yii and getting nothing.

<script type="text/javascript">

  window.onload = function() {

    FB_RequireFeatures(["XFBML"], function() {

      FB.init('xxxxxx', 'xd_receiver.htm');

      FB.XFBML.Host.get_areElementsReady().waitUnitlReady(function()
        {
          document.getElementById("container").style.visibility = "visible";
        });

    });

  };

</script>

<script type="text/javascript">

function publish() {
 FB_RequireFeatures(["Connect"], function() {
   FB.init('xxxxxx', 'xd_receiver.htm');
   FB.ensureInit(function() {
     FB.Connect.streamPublish();
   });
 });
}

</script>

<fb:serverFbml style="width: 755px;">
 <script type="text/fbml">
  <fb:fbml>
   <fb:request-form
      action="http://apps.facebook.com/ixxxx"
      method="POST"
      invite="true"
      type="rrrrr"
      content="rrrrr <?php echo htmlentities("<fb:req-choice url=\"http://apps.facebook.com/XXXX\" label=\"Authorize My Application\"") ?>" > 
<fb:multi-friend-selector showborder="false" actiontext="Invite your friends to use SuperThief."> 

   </fb:request-form>
  </fb:fbml>
 </script>
</fb:serverFbml>

© Stack Overflow or respective owner

Related posts about facebook

Related posts about yii