Disable redirect in fb:request-form Send/Cancel button

Posted by Colossal Paul on Stack Overflow See other posts from Stack Overflow or by Colossal Paul
Published on 2010-01-03T23:01:34Z Indexed on 2012/09/21 3:38 UTC
Read the original article Hit count: 160

How do I disable the redirect in Facebook's invite form?

<fb:serverfbml style="width: 600px; height: 650px;">
        <script type="text/fbml">
            <fb:request-form 
                action="index.php"
                method="POST"
                invite="true"
                type="MyApp"
                content="Please have a look. 
        <fb:req-choice url='http://apps.facebook.com/myapp/' label='View Now!' />">                
    <div class="clearfix" style="padding-bottom: 10px;">
        <fb:multi-friend-selector condensed="true" style="width: 600px;" />
    </div>
    <fb:request-form-submit />
</fb:request-form>

After selecting friends, you will see the final Send Invite dialog with your template. After you click send or cancel, how do i disable the redirect by just closing the the dialog?

Thanks.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about facebook