Viewing 15 replies - 16 through 30 (of 30 total)
  • Thread Starter zhonghua

    (@zhonghua)

    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.

    Thread Starter zhonghua

    (@zhonghua)

    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.

    Thread Starter zhonghua

    (@zhonghua)

    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:

    1. Download/install version 1.89 from here
    2. 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.

    Thread Starter zhonghua

    (@zhonghua)

    add_action('loop_start', array(&$this, 'Loop_start'));

    This code? I’m using notepad++..

    Thread Starter zhonghua

    (@zhonghua)

    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 πŸ™‚

    Thread Starter zhonghua

    (@zhonghua)

    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.

    Thread Starter zhonghua

    (@zhonghua)

    i mean, the customize facebook login or connect button image?? possible? πŸ™‚ thanks

    Can you give me a link to these buttons, please?

    Thread Starter zhonghua

    (@zhonghua)

    i’ll upload mine… just few minutes pls.. πŸ™‚

    Thread Starter zhonghua

    (@zhonghua)

    You can only change the login button image if you build your own script. Add Link to Facebook only uses the standard login button.

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘[Plugin: Add Link to Facebook] login button isn't showing’ is closed to new replies.