Hi m66b, can you add this http://developers.facebook.com/docs/reference/oldjavascript/FB.Connect.logout/
in which this will force to logout facebook and your website..?
Thanks
I was aware of that, but it will not log you out of WordPress. Have a little patience and I will brew something that does what your want. Maybe I will include it in the plugin, but don’t count on it.
Okay, Thanks mate π I’ll look forward unto it π
I added this small code to use a facebook logout button if your account is still logon..
autologoutlink="true"
π
Put this into the plugin option ‘Text or HTML when logged in‘:
<script type="text/javascript">
function al2fb_logout() {
FB.logout(function(response) {
window.location = window.location.protocol + '//' + window.location.host + '/wp-login.php?action=logout'
});
return false;
}
</script>
<a href="#" onclick="al2fb_logout();">Logout</a>
It is not perfect, but it works.
Hi thanks for the tips.. but when I upgrade to 1.91 version, the button doesn’t show again.. π
Thanks for reporting this problem. I was already aware of it, but I still have to find a solution for it (without breaking something else π ).
You can do two things to solve it:
- Download/install version 1.89 from here
- Remove the comment from line 225 in the file
add-link-to-facebook-class.php
I recommend doing the last one, just remove the double slash (//) and you’re done.
add_action('loop_start', array(&$this, 'Loop_start'));
This code? I’m using notepad++..
found the fix, Should remove the
add_action('loop_start', array(&$this, 'Loop_start'));
and remove the // comment to ALL,
$content .= '<div id="fb-root"></div>';
login button shows now.. i hope it would implement in the next version π
It is possible to use own facebook connect or login button?? thanks
You can login using the Facebook login API, but you’ll have to make this yourself. The plugin will only support the standard Facebook login button.
i mean, the customize facebook login or connect button image?? possible? π thanks
Can you give me a link to these buttons, please?
i’ll upload mine… just few minutes pls.. π
You can only change the login button image if you build your own script. Add Link to Facebook only uses the standard login button.