• I’ve read and re-read, and tried a bunch of things but nothing seems to fix it.

    First off, everything (except the avatars) worked perfectly.

    I can’t get the commenter’s Facebook avatar to show up.

    I noticed in the fbci.class.php file it’s commented:
    * – author_picture : the FB profile picture of the commenter (not used for the moment)

    Please help me find a solution to this if you can

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter FRVUSA

    (@frvusa)

    Well after all the reading last night I found the solution while trying to fix something else in another plugin.

    So for future reference, what worked for me was:

    In the file wp-content/plugins/facebook-comments-importer/fbci.class.php

    Line 236 is
    "author_picture" => "https://graph.facebook.com/". $user["id"] ."/picture",

    I changed it for
    "author_picture" => "https://graph.facebook.com/". $user["uid"] ."/picture",

    Hope it helps

    Plugin Author Neoseifer22

    (@neoseifer22)

    Very weird !
    “uid” does not exists in the Facebook API !
    And the orginial code works well for me…

    I can’t explain this.

    Did you have the same problem on the admin dashboard ?

    Plugin Author Neoseifer22

    (@neoseifer22)

    About the “(not used for the moment)” comment. I forgot to remove it since 1.1 version :p
    In fact, it is used since 1.1.

    Thread Starter FRVUSA

    (@frvusa)

    No clue why but it did the trick, for one day, now it’s back to my profile picture. Yes in my dashboard it also shows my picture. I’ll revert back to the original code and see what happens.

    Thread Starter FRVUSA

    (@frvusa)

    Okay, went back to id.

    Now the pictures show correctly in the posts, but not on my Dashboard and not on my “recent comments” section (provided by another plugin but it was doing fine for that one day).

    I like your plugin better than the other comments importer and will continue to use it, but I’d surely appreciate the help

    Me too!! I have the same situation as FRVUSA, love to be able to find a solution. And YES, my facebook profile avatar is displayed even in the admin pages, as well as on the site.

    I noticed on my database, on the commentmeta table, you store the fbci_comment_id, and I also have the fbid meta, and ALL are set to my fbid, so that is why theme is displaying my avatar… Perhaps because I have a plugin that allows people to comment using their fbids, perhaps that plugin is somehow overriding yours… can we force it to be the other way around?

    Do you insert that fbid field somewhere in your plugin? I noticed on your code (class) that the picture is not used really or saved in the db.

    Plugin Author Neoseifer22

    (@neoseifer22)

    This plugin does not store or use this “fbid” data. The only data that is used is fbci_comment_id.

    For each comment, WordPress calls a function of the plugin. The function does this steps :

    1. It gets the comment_author_url value form the “comments” table. This should be the url of the user’s profile. Or an empty string if the user’s profil is private.

    2. It gets the last part of this url (after the last “/”). It is the user id.

    3. it gets the user’s avatar like this : ‘https://graph.facebook.com/’ + user_id + ‘/picture’.

    So, the only problem should be the comment_author_url is not the good one. Can you check in your database what is the value of the comment_author_url field for these comments ?

    The other solution should be to retrieve the avatar by the graph API (retrieve the comment from facebook, then the user of the comment, then the avatar), but this will highly affect the overall blog performance.

    Thread Starter FRVUSA

    (@frvusa)

    I got rid of the problem for now by erasing my facebook app permitions for myself on FB. I dont know before, but now it’s not populating the some users url. But at least it shows the “mystery man” avatar instead of mine. Maybe those whose url are not being populated would’ve been the ones showing my avatar, but why is that?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Comments show with my Facebook avatar’ is closed to new replies.