WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Simple Facebook Connect] Comments when logged in. (5 posts)

  1. jonbarclay
    Member
    Posted 4 years ago #

    Is there a way to have it show your facebook user information when you make a comment even when you are logged into wordpress? I have to logout before I comment so the facebook picture shows up.

    I do have SFC - Login enabled and have associated my account with my facebook user. It is working and automatically loges me in when I go the the site and am logged into facebook.

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 4 years ago #

    I didn't do that sort of thing by default because I figured most people would want their gravatar to show up.

    So, what you really want is for it to show your Facebook avatar even for logged in users?

    In the sfc-comments.php, you'll find this line of code towards the bottom:

    if ( !is_object($id_or_email) || !isset($id_or_email->comment_ID) || $id_or_email->user_id)
    	 return $avatar;

    If you change it to this:

    if ( !is_object($id_or_email) || !isset($id_or_email->comment_ID))
    	 return $avatar;

    Then logged in users will get their Facebook avatars to show instead of their Gravatars.

  3. jonbarclay
    Member
    Posted 4 years ago #

    Wow that worked great! Thanks again for a great plugin!

    One thought is could you have that be a check box option on the plugin settings page?

    Thanks again for a great plugin!

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 4 years ago #

    I'm generally against adding options for minor things like this. Realistically, you'd probably be better served by simply signing up for a gravatar account. Then your avatar could show up everywhere, on all WordPress blogs, and even this forum for example. Gravatars are universal.

    Also, the Facebook pics kinda suck, as they're limited to 50px wide if you want the square ones.

  5. lastafa
    Member
    Posted 4 years ago #

    Wow, that worked. My users probably thinks gravatar is a spoof on Avatar: the movie :P

    I'm trying to integrate as seamlessly as possible to get nontech facebook users to start using the social features of my site.

    Is there a possibillity to show the "post to facebook" checkbox for users that already connected their account to facebook or signed up through facebook connect?

    That would really make this swing!

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic