Search code examples
phpfacebookxfbml

Facebook multi-friend-selector gets cut off in iframe


I've been working on a Facebook app and the only thing that's still bogging me down is the friend requests.

When I use the fb:multi-friend-selector code, the confirmation pop-up gets cut off by the iframe on the right hand side. The app is an iframe-based canvas app.

Any ideas?


Solution

  • You can specify a width attribute on the <fb:serverfbml> tag to make it wide enough:

    <fb:serverfbml width="615">
      <script type="text/fbml">
        <fb:request-form ...></fb:request-form>
      </script>
    </fb:serverfbml>
    

    Example: http://fbrell.com/xfbml/fb:server-fbml-multi-friend-selector

    EDIT: Made it more of an answer.