WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a way to let people connect with facebook when posting comments, and to use their facebook avatars as the avatar for the comments. How can this be done? Do I need to create a seperate user account for those people, or is their a way to simply store an avatar url for each comment that's posted?

share|improve this question
up vote 2 down vote accepted

Three simple steps to generate a Facebook Avatar:

  1. Create an extra field in your comment form for the user's facebook profile (see e.g. WP Engineer for a code example and how to)
  2. If the user filled out this field, get the facebook avatar (see this question)
  3. Replace the WP avatar with your facebook avatar if a fb profile url is set

All together in this Gist (PHP5.3 required!). Tested with WP3.5 and FireFox/Chrome

Hint: It is strongly advised to read the code comments. There are several informations how to configure the plugin e.g. in the functions.php.

share|improve this answer
tyvm! --------- – Click Upvote Jan 3 '13 at 22:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.