[Plugin: Wordbooker] Integration with WP-FB-AutoConnect
-
Hey Steve,
I’m the author of WP-FB-AutoConnect, and I have a very small code change which, if included, could allow me to integrate with your plugin in a pretty cool way.
My plugin is essentially a Facebook Connect implementation, which includes a bunch of other features including the ability to replace WordPress avatars with Facebook profile pictures for “connected” users.
As you know, your plugin allows comments to be imported from Facebook. Although each imported comment is assigned the same e-mail (as per the options), if you were to also store the uid of the user, I could then use my plugin to show the real avatar of the Facebook user who posted the comment, provided that user has logged into the blog before.
I’ve already implemented it on my end and it works great. The only change needed to Wordbooker is to store the uid from which the comment came. After importing the comment in wordbooker_poll_facebook():
if ($comment_approve==1){ //Added $newcomment = $newComment = wp_insert_comment($data); } else { //Added $newComment = $newComment = wp_new_comment($data); } //New update_comment_meta($newComment, "fb_uid", $comment[fromid]);
The topic ‘[Plugin: Wordbooker] Integration with WP-FB-AutoConnect’ is closed to new replies.