Hi,
I think I’m in the same issue. My problem is: I’m looking at an attachment (image.php), and commenting it and logout. At this point I’m redirected to the parent post of the attachment.
The problem should be in FB.Connect.logoutAndRedirect(\”<?php the_permalink() ?>\”), in these lines (taken from /plugins/simple-facebook-connect/sfc-comments.php):
if (!jQuery('#fb-user').length) {
jQuery('#comment-user-details').hide().after("<span id='fb-user'>" +
"<fb:profile-pic uid='loggedinuser' facebook-logo='true' size='normal' height='96'></fb:profile-pic>" +
"<span id='fb-msg'><strong><fb:intl>Ciao</fb:intl> <fb:name uid='loggedinuser' useyou='false'></fb:name> !</strong><br /><fb:intl>Sei connesso con il tuo account Facebook.</fb:intl>" +
" <a href='#' onclick='FB.Connect.logoutAndRedirect(\"<?php the_permalink() ?>\"); return false;'>Logout</a>" +
"</span></span>");
jQuery('#sfc_comm_send').html('<input style="width: auto;" type="checkbox" id="sfc_comm_share" /><label for="sfc_comm_send"><fb:intl>Condividi anche su Facebook</fb:intl></label>');
}
The Loop I’m using comments_template() in is a personalized one, so I’ve tried to add wp_reset_query() before comments_template(), but doesn’t work, and after the logout I’m redirected to the parent post.
Anybody can help?
Thanks