Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

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

    Thread Starter Hpalmatellez

    (@hpalmatellez)

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

    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?

    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'] = "https://www.facebook.com/{$uid}"; //temp fix

    Thread Starter Hpalmatellez

    (@hpalmatellez)

    @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!

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Usernames can change. IDs can’t.

    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?

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    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.

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

    $_POST[‘url’] = $json[‘website’];

    and changed it to:

    $_POST[‘url’] = “https://www.facebook.com/{$uid}”; //temp fix

    it’s wrong, the correct is

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

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

    Thread Starter Hpalmatellez

    (@hpalmatellez)

    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.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: Simple Facebook Connect] Link in author's name’ is closed to new replies.