views:

560

answers:

2

How can I add a friend invite feature to my newly created Facebook application?

+9  A: 
David Dorward
The facebook documentation is very crude and the API is always changing so I think this is a fair question to ask, even if it was badly stated.
Lone Coder
A: 

I was able to get this to work by using this sample http://msdn.microsoft.com/en-us/windows/ee695841.aspx with this code:

<fb:serverFbml style="width: 755px;">
<script type="text/fbml">
    <fb:fbml>
        <fb:request-form  method="POST" invite="true" type="MassiveFreecell"
                content="You have been invited to the Application Name application. <%= Server.HtmlEncode(@"<fb:req-choice url=""http://apps.facebook.com/massive-freecell-dev/"" label=""OK"" />") %>" >
            <fb:multi-friend-selector showborder="false" actiontext="Invite your friends to use this application." />
            <fb:request-form-submit />
        </fb:request-form>
    </fb:fbml>
</script>

Lone Coder