Saturday, January 29, 2011

Add Invite Your Friends Box in Facebook Application or Fan Page


To add a Invite your friends box in facebook application you need to use below code ,Using below code you can allow your user to Invite there friends  to your applicationn or page

Code for Facebook Fan Page

<fb:request-form method="post" type="[your organization]" invite="true" content="Check out [your organization]
<fb:req-choice url='http://www.facebook.com/YOURPAGE' ' label='GO' /> ">
<fb:multi-friend-selector actiontext="Tell your friends about [your organization]" rows="3" showborder="true" />
</fb:request-form>

Code for Facebook Application Page


<div style="width:760px; min-height:530px; margin-left:-10px;">
<fb:serverFbml width="755px">
<script type="text/fbml">
<fb:fbml>
<fb:request-form
action='<?php echo $canvasUrl; ?>'
method='POST'
type='<?php echo $inviteType; ?>'
invite="true"
content="<?php echo $inviteContent; ?>
<fb:req-choice url='<?php echo $canvasPage; ?>' label='<?php echo $inviateAcceptButtonLabel; ?>'/>"
<fb:multi-friend-selector showborder="false" actiontext="Select your friends." ></fb:multi-friend-selector>
</fb:request-form>
</fb:fbml>
</script>
</fb:serverFbml>
</div>

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More