Forums

[resolved] [Plugin: WP-FacebookConnect] Name & avatar of logged user not diplaying - solution (3 posts)

  1. anojszewski
    Member
    Posted 2 years ago #

    I had a problem with my name and av when I was logged in throught FC - the were not displaying (just "Welcome, Logout of Facebook" and default av displayed).

    It is caused by very high IDs introduced by FB (my is 100000326900458) which were truncated to much lower decimal number by sprintf command.

    My solution: in fbconnect.php line 470 starts the function fbc_render_login_state()

    in function body, after sprintf(' change:
    uid="%d"
    to:
    uid="%s"
    it appears twice.

    That's all. Remember to backup this file first.

    http://wordpress.org/extend/plugins/wp-facebookconnect/

  2. petercasa
    Member
    Posted 2 years ago #

    Sweet, fixes problem with long id.

    But name is not being captured and stored in profile. Any ideas?

  3. mingrode
    Member
    Posted 1 year ago #

    Hi, I managed to get the logged in user's avatar and name to display using the fix above, but they still can't see other people's avatars or names in the comments. Anyone having this issue? Older facebook accounts don't have this problem...

Topic Closed

This topic has been closed to new replies.

About this Topic