WordPress.org

Ready to get started?Download WordPress

Forums

Simple Facebook Connect
Link in author's name (12 posts)

  1. Hpalmatellez
    Member
    Posted 2 years ago #

    I could install and make work Simple Facebook Connect, however, when someone connected to my WordPress and comments using Facebook, the link in their name is the sum of all the links they've got in their Facebook profile, where you can add your URLs.
    I want to know if there's a way to limit this field or just change it for the URL of the user's profile.

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

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    Next version will do this because of FB's weird handling of multiple websites in profiles.

  3. Hpalmatellez
    Member
    Posted 2 years ago #

    Thanks for the answer, I'll be looking forward for the next version.

  4. joegearhart
    Member
    Posted 2 years ago #

    Has there been any movement on this? If not, is it possible for me to modify a template so that the commenter's name will link to their facebook profile?

  5. joegearhart
    Member
    Posted 2 years ago #

    As a note, I was able to figure out how to link to the user's facebook page until Otto releases his next version.

    In the "simple-facebook-connect/sfc-comments.php" template, I located this code:

    $_POST['url'] = $json['website'];

    and changed it to:

    $_POST['url'] = "http://www.facebook.com/{$uid}"; //temp fix

  6. Hpalmatellez
    Member
    Posted 2 years ago #

    @joegearhart, that's great! Thanks, I already tested it. Maybe the one thing that could improve it is if instead of the ID as a number in the URL, there was the selected username by the user who commented.
    But it's great anyway!

  7. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    Usernames can change. IDs can't.

  8. irfanrahman
    Member
    Posted 2 years ago #

    Well, this is kind of a dilemma for me. When someone register in a website, few info supposed to be pulled from Facebook and mapped to wordpress profle, such as;

    :guid => user["id"],
        :city =>  user["location"]["name"],
        :first_name => user["first_name"],
        :last_name => user["last_name"],
        :birth_date => user["birthday"],
        :email_address => user["email"],
        :photo => user["picture?type=large"]

    Now if that info is pulled correctly, link user's facebook profile should populate user's website (this is done with Gigya plugin I know for sure). So, when
    $_POST['url'] = $json['website'];
    is called this replies correctly. But then again, use may have a different website and would like to use that as primary, so maybe what we need is a additional field that saves both link to facebook profile (in addition to website or maybe 2 links under website), then when called looks for website first if none found, calls for facebook profile link, or vice versa.

    What do you think?

  9. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    irfanrahman: The Comments module doesn't create a WordPress user account, so none of that information is relevant.

    The problem with using the "Website" field there is that Facebook sends back all the multiple website's entered on the users account as one string. Thus, the linkage is wrong for multiple websites.

    So for the comments plugin, it's going to be changed to show the link to the user's FB profile instead. This makes more sense there.

  10. potosyan
    Member
    Posted 2 years ago #

    In the "simple-facebook-connect/sfc-comments.php" template, I located this code:

    $_POST['url'] = $json['website'];

    and changed it to:

    $_POST['url'] = "http://www.facebook.com/{$uid}"; //temp fix

    it's wrong, the correct is

    $_POST['url'] = "http://www.facebook.com/profile.php?id={$uid}"; //temp fix

  11. joegearhart
    Member
    Posted 2 years ago #

    It is not wrong. You are simply providing an alternative method. If my code was wrong, it would not work.

  12. Hpalmatellez
    Member
    Posted 2 years ago #

    I thought it wouldn't work because of the missing profile.php?id=, but it goes to the user profile anyway.
    IMO, it's better with the shortest URL.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic