Facebook, iframe app, fb:request-form, action attribute problem

Posted by Unreality on Stack Overflow See other posts from Stack Overflow or by Unreality
Published on 2009-06-10T04:08:07Z Indexed on 2010/03/25 21:13 UTC
Read the original article Hit count: 965

Hi all,

I'm making a facebook iframe application

I'm making a request form with my own form data. What should I do in order to process the data?

If I put action="http://apps.facebook.com/[appName]/abc.php" , i.e.

<fb:serverfbml>
	<script type="text/fbml">
		<fb:fbml>
			<fb:request-form action="http://apps.facebook.com/[appName]/abc.php" method="post" type="abc" content="abc">
				<textarea name="pm" fb_protected="true" ></textarea>
				<fb:multi-friend-selector showborder="false" max="35" actiontext="test" email_invite="true" bypass="cancel" />
			</fb:request-form> 
		</fb:fbml>
	</script>
</fb:serverfbml>

Then the result is funny... A facebook page inside the facebook app's iframe !

but if I put action="http://[my own domain / facebook connect url]/abc.php" , i.e.

<fb:serverfbml>
	<script type="text/fbml">
		<fb:fbml>
			<fb:request-form action="http://[my own domain / facebook connect url]/abc.php" method="post" type="abc" content="abc">
				<textarea name="pm" fb_protected="true" ></textarea>
				<fb:multi-friend-selector showborder="false" max="35" actiontext="test" email_invite="true" bypass="cancel" />
			</fb:request-form> 
		</fb:fbml>
	</script>
</fb:serverfbml>

Then the result page will be rendered WITHOUT facebook template (that means losing all top facebook banner and bottom facebook bar like the facebook chats etc)

Anyone knows what's wrong?

Thanks a lot for reading

© Stack Overflow or respective owner

Related posts about facebook

Related posts about serverfbml