I have a site that used Facebook comments for a period of time and then removed them for native WP comments. I was able to write a function that grabbed all the comments and re-inserted them into the WP database (as FB comments do not store in WP). However, Facebook's OpenGraph API does not provide email addresses (which I understand).
So what I want to accomplish is the following:
- Query the comment table for a specific name using the
comment_author - Pull all comments by that name
- If there is an email address present in one comment array, copy it over to the one that is missing
I have accomplished #1 and #2, but I'm at a loss for #3. Any ideas?