This is my code
<fb:serverFbml style="width: 760px;">
<script type="text/fbml">
<fb:fbml>
<fb:request-form
action="http://apps.facebook.com/MyAPP/invite.php"
target="_top"
method="POST"
invite="true"
type="Invite Form"
content="<fb:req-choice url='http://www.example.com/folder/index.php' label='Accept' />"
>
If i have action="http://www.example.com/folder/invite.php" then it posts array of friends invited in invite.php page, but it takes user outside facebook interface. If i have action="http://apps.facebook.com/MyAPP/invite.php" then it stays in facebook interface but loads a blank page for invite.php.
Any idea how to solve this?
It looks like if I have action=apps.facebook.com/MyAPP/invite.php
then <fb:request-form>
doesn't post the ids array to the page. So I tried action="MyDomain.com/folder/invite.php";
and it gave me the ids in and array which I stored in a session and then have this page redirect the user back to apps.facebook.com/MyAPP
. There I checked the number array processed it the way I wanted. Not sure this is best way to go about it though.