Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.