WordPress.org

Ready to get started?Download WordPress

Forums

Add Link to Facebook
login button isn't showing (31 posts)

  1. zhonghua
    Member
    Posted 2 years ago #

    I tried to click the checkbox for add login button, but it seems that it doesn't show up at.. why? :(

    http://wordpress.org/extend/plugins/add-link-to-facebook/

  2. Marcel Bokhorst
    Member
    Plugin Author

    Posted 2 years ago #

    It does only show on single posts/pages and only if you are not logged in. Please read question U29 of the FAQ to understand why and for how to change that.

  3. zhonghua
    Member
    Posted 2 years ago #

    so you mean it won't appear on widgets?

  4. zhonghua
    Member
    Posted 2 years ago #

    i tried it, it shows up, but it doesn't login on my wordpress account and doesn't reload the site.. it only logs in to facebook.. need help pls.. thanks in advance..

  5. Marcel Bokhorst
    Member
    Plugin Author

    Posted 2 years ago #

    Assuming you setup the registration form and login button as described in question U29 of the FAQ: did you register using the Facebook registration form before trying to sign in? It may help if you send me the debug information. See the last question in the FAQ for how to.

  6. zhonghua
    Member
    Posted 2 years ago #

    I'm using before Simple Facebook connect plugin, but when I tried deactivating SFC and activating add link to facebook, the button doesn't appear anymore..

  7. Marcel Bokhorst
    Member
    Plugin Author

    Posted 2 years ago #

    Did you follow the steps of question U29 already?

    Please note that after logging in you will be redirected to the page where you came from (unless you had set another page using the plugin options).

  8. zhonghua
    Member
    Posted 2 years ago #

    anyway, i tried it on my test site.. it works perfectly now :)
    it is possible to display a facebook avatar if connected to facebook? :)

  9. Marcel Bokhorst
    Member
    Plugin Author

    Posted 2 years ago #

    Nice it works now. I don't know how a Facebook avatar can be displayed, but you can display an avatar with the information in the FAQ (question U29).

  10. zhonghua
    Member
    Posted 2 years ago #

    how about sir, how to connect with facebook is admin account is already registered as wordpress user?? thanks for the fast reply :)
    I can say, Best plugin! :)

  11. Marcel Bokhorst
    Member
    Plugin Author

    Posted 2 years ago #

    If you are willing to go on a little adventure:

    1. Go to the plugin settings page (WordPress menu > Tools > Add Link to Facebook)
    2. Click 'Debug information' in the right panel
    3. Scroll down, tick 'Debug' and press 'Save'
    4. Go here
    5. Go to your WordPress profile and enter the Facebook ID

    Don't forget to turn off debugging when you are done, because this can slow down your site.

  12. Marcel Bokhorst
    Member
    Plugin Author

    Posted 2 years ago #

    If you download the development version in about half an hour, you can enter your Facebook ID without enabling debug mode.

  13. zhonghua
    Member
    Posted 2 years ago #

    Thanks a lot, m66b! :)

    lastly, can you add a features that lets you logout both wordpress account and facebook account? :)

    It works like a charm, indeed! :)

  14. Marcel Bokhorst
    Member
    Plugin Author

    Posted 2 years ago #

    There is no documented way of logging out from Facebook, so I cannot make this, sorry.

  15. zhonghua
    Member
    Posted 2 years ago #

    Okay, Thanks a lot Sir.. I'll try to figure out the code soon so I can share it here too.. :)

  16. zhonghua
    Member
    Posted 2 years ago #

    I'm using the development version.. it works perfectly by testing with an id and removing my facebook profile id.. :)

    Indeed the best! :)

  17. zhonghua
    Member
    Posted 2 years ago #

    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

  18. Marcel Bokhorst
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  19. zhonghua
    Member
    Posted 2 years ago #

    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" :)

  20. Marcel Bokhorst
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  21. zhonghua
    Member
    Posted 2 years ago #

    Hi thanks for the tips.. but when I upgrade to 1.91 version, the button doesn't show again.. :(

  22. Marcel Bokhorst
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  23. zhonghua
    Member
    Posted 2 years ago #

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

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

  24. zhonghua
    Member
    Posted 2 years ago #

    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 :)

  25. zhonghua
    Member
    Posted 2 years ago #

    It is possible to use own facebook connect or login button?? thanks

  26. Marcel Bokhorst
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  27. zhonghua
    Member
    Posted 2 years ago #

    i mean, the customize facebook login or connect button image?? possible? :) thanks

  28. Marcel Bokhorst
    Member
    Plugin Author

    Posted 2 years ago #

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

  29. zhonghua
    Member
    Posted 2 years ago #

    i'll upload mine... just few minutes pls.. :)

  30. zhonghua
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic