I’m trying to fire an event when you log in to comment, but for some reason the event doesn’t fire. Here’s my code:
<script src="http://connect.facebook.net/en_US/all.js#appId=158693604164389&xfbml=1"></script>
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({ appId: '158693604164389', status: true, cookie: true, xfbml: true });
FB.Event.subscribe('auth.login', function(response) {
document.getElementById('newsletter-placeholder').style.display = "block";
});
};
</script>
Any idea?
Thanks in advance.
Mauro
I suppose you mean, when the user logs-in when trying to use the comments plugin?
If this is what you mean, then no you can’t capture this event!
This is fired when the user logs in (connects) to your application!