I have been trying add facebook login to my page. I have facebook login button placed on my page using following script:
<script src="http://connect.facebook.net/en_US/all.js">
</script>
<script>
FB.init({
appId:'<?php echo APP_ID;?>', cookie:true,
status:true, xfbml:true
});
</script>
<fb:login-button perms="email,user_checkins">
Login with Facebook
</fb:login-button>
It shows the login button too. while clicking it opens the login screen of facebook too.
after making successfull login the popup box just closes without refreshing the parent page.
what am i missing?
You are not asking the page to refresh after a successful login:
See the PHP-SDK example for more information.