Possible Duplicate:
How to let Facebook Login button redirect to a particular URL
I am using the Facebook’s login button (XFBML) to login users.. to my app..
But as one clicks the button.. its logs you in but remains on the same page.. how to redirect it.. to home page ?
here is the snippet :
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#appId=APP_ID&xfbml=1">
</script>
<fb:login-button show-faces="true" width="200" max-rows="1"></fb:login-button>
So.. what to do ?
http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/