Have you tried comment_post action? It’s fired right after the comment is inserted into the database.
function share_comment_on_facebook( $comment_ID ) {
$commentdata = get_comment( $comment_ID );
if ( $commentdata['comment_approved'] ) {
// fire up the code to launch pop up
}
}
add_action( 'comment_post', 'share_comment_on_facebook' );
Related Posts:
- Is it possible to pull comments from facebook into your blog?
- A plugin where users can comment with Facebook or Twitter or OpenID [closed]
- Twitter/Facebook login for comments [closed]
- FB – Comment Moderation Tool bug or error in the code?
- Publish a message on facebook after having posted a comment
- Sync comment data
- Show Social Sharing Buttons And Facebook Comments In Lightbox Modal Dialog (Image Overlay)?
- Are there some caveats for using guids for FB comments
- Facebook comments widget – App ID
- How to import facebook comments to WordPress database?
- Display facebook comments made on site
- Embed a page within WordPress dashboard?
- Is there a plugin that can replace WP comments with Facebook comments as used by TechCrunch? [closed]
- Merge comments from Facebook with WP comments [closed]
- prevent duplicate comments using wp_insert_comment
- Change Comment Author Display Name
- comments reply script not working
- What should I do to make generated avatars different for anonymous comments?
- How do I set up real anonymous posting in bbpress forums? [closed]
- How do I turn off wordpress comments ability to capture a users ip address?
- Success message in comment form
- How to remove commenters ability to add hyperlinks to comments?
- Exclude internal links from comment moderation?
- Change the HTML output of comments
- Installing Facebook comment plug in without loosing all previous wordpress comments?
- Can’t add default comments to custom post type
- Upload images with comment
- Change language of comments template
- Multiple Comment Forms in a single page [closed]
- Why Allow Script Commands in Comments?
- How to enable comments options?
- WordPress comment count to include attachment comments
- How to no follow the paginated comments
- Remove “Comments are closed” Notice from Custom Post Type template
- Comment count wrong with orphaned comments
- Get comment content by comment ID
- Pings and replies
- Retrieve comments from current post using SQL
- Comment_Reply_Link Not Showing?
- Display recent comments with gravatar and excerpts?
- Is comment metadata included in the export file?
- Get a List of All Commenters on the Current Post
- Display the number of unseen comments on a page since the user last visit
- Log in link not showing, Comment Issue
- Removing the limit on the number of nested comments
- How to call my custom WordPress Comment form without getting the comments?
- How to moderate (manually approve) comments of a specific (registered) User
- How to limit comment author to one comment per post
- Ability to leave comments broken
- How to disable comment flood temporarily in a single scope
- How to create a seperate commenting system?
- Change how many approved comments must user have
- Only admin can see comments on post or page
- Count comment threads, not total comments in a post
- Integrate Facebook comments with native comments
- Display Custom comments field number
- Get all child comments ids from parent comment id
- Trying to post a wordpress comment on my site redirects to 127.0.0.1
- How can get comment link by comment id?
- How to amend time format of comments, using child-theme?
- Make user’s name display as the site name in comments if it matches certain roles
- Display avatar with comment form?
- Adding SQL source code to comments
- How to control size of comments popup window?
- Add comment_id on Comments page within wp-admin
- Sent comments notifications to multiple users
- I update a post and it creates a pingback? Any idea why?
- assumed as comment line
- How / where is the wp_query object created for RSS feeds?
- Separate page for comments using permalinks and add_rewrite_rule
- Return count for characters in the comment and perform action based on the length
- How to load new posts from wordpress db into wordpress homepage without refreshing the site?
- Cannot Remove Title Reply from Custom Comment Template for Signup Page
- comments.php remove date/time’s #hyperlink
- comment just attachment .. reply just text … can I do that?
- How to make email field not required in comments?
- I want to limit registered user to 1 comment per post in WordPress
- edit comments in front end
- What is wrong with this? [closed]
- Comment moderation
- I have tried using Plugins to remove 72K comments with no success
- How to get the 5 most recent comments and each comment 5 most recent replies (children)
- How to check if post has previous_comments_link() and next_comments_link()
- Comment text area in single blog post and show comments if approved
- comment files and s
- How to ‘If Author’ Comments Check
- selectively disable akismet
- Disqus moderation page not working in WordPress admin section
- Comment Blacklist
- Comment forum to display under the comment you’re replying too
- Recent comments per tagged post?
- Subscribe to a post’s comments without posting a comment yourself
- Modify “Recent Comments” List in WP-Admin
- Comment submission & navigation redirects to default language
- How to hide the login / profile urls on top of comment box for a post
- wp_list_comments adds unnecessary elements
- Query comments with non-empty ‘author_url’ value on Admin Comments Screen
- Customize the new comment notifications sent to the post author after the comment is approved
- Get approved comments or comments that the author is me
- Show/Hide comments