• Hey guys,

    I’m having trouble with these facebook comments. Everything else in the plugin is working beautifully except these damn comments!!
    I’m not the greatest with PHP, but I’m managing for the most part…

    I followed all of the directions that came along with the plugin to the best of my interpretation of them, but the facebook comments are not showing up on the actual site itself.

    Here’s a link to the site that’s under development:
    http://www.breakfastwithnabil.com/wordpress/

    …and here’s the comments template file:

    <?php
    	if ( 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']) )
    		die ( 'Please do not load this page directly. Thanks.' );
    ?>
    			<div id="comments">
    <?php
    	if ( !empty($post->post_password) ) :
    		if ( $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password ) :
    ?>
    				<div class="nopassword"><?php _e( 'This post is protected. Enter the password to view any comments.', 'sandbox' ) ?></div>
    			</div><!-- .comments -->
    <?php
    		return;
    	endif;
    endif;
    ?>
    <?php if ( $comments ) : ?>
    <?php global $sandbox_comment_alt ?>
    
    <?php // Number of pings and comments
    $ping_count = $comment_count = 0;
    foreach ( $comments as $comment )
    	get_comment_type() == "comment" ? ++$comment_count : ++$ping_count;
    ?>
    <?php if ( $comment_count ) : ?>
    <?php $sandbox_comment_alt = 0 ?>
    
    				<div id="comments-list" class="comments">
    					<h3><?php printf($comment_count > 1 ? __('<span>%d</span> Comments', 'sandbox') : __('<span>One</span> Comment', 'sandbox'), $comment_count) ?></h3>
    
    					<ol>
    <?php foreach ($comments as $comment) : ?>
    <?php if ( get_comment_type() == "comment" ) : ?>
    						<li id="comment-<?php comment_ID() ?>" class="<?php sandbox_comment_class() ?>">
    							<div class="comment-author vcard"><?php sandbox_commenter_link() ?></div>
    							<div class="comment-meta"><?php printf(__('Posted %1$s at %2$s <span class="meta-sep">|</span> <a href="%3$s" title="Permalink to this comment">Permalink</a>', 'sandbox'),
    										get_comment_date(),
    										get_comment_time(),
    										'#comment-' . get_comment_ID() );
    										edit_comment_link(__('Edit', 'sandbox'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>'); ?></div>
    <?php if ($comment->comment_approved == '0') _e("\t\t\t\t\t<span class='unapproved'>Your comment is awaiting moderation.</span>\n", 'sandbox') ?>
    							<?php comment_text() ?>
    						</li>
    <?php endif; // REFERENCE: if ( get_comment_type() == "comment" ) ?>
    <?php endforeach; ?>
    
    					</ol>
    				</div><!-- #comments-list .comments -->
    
    <?php endif; // REFERENCE: if ( $comment_count ) ?>
    <?php if ( $ping_count ) : ?>
    <?php $sandbox_comment_alt = 0 ?>
    
    				<div id="trackbacks-list" class="comments">
    					<h3><?php printf($ping_count > 1 ? __('<span>%d</span> Trackbacks', 'sandbox') : __('<span>One</span> Trackback', 'sandbox'), $ping_count) ?></h3>
    
    					<ol>
    <?php foreach ( $comments as $comment ) : ?>
    <?php if ( get_comment_type() != "comment" ) : ?>
    
    						<li id="comment-<?php comment_ID() ?>" class="<?php sandbox_comment_class() ?>">
    							<div class="comment-author"><?php printf(__('By %1$s on %2$s at %3$s', 'sandbox'),
    									get_comment_author_link(),
    									get_comment_date(),
    									get_comment_time() );
    									edit_comment_link(__('Edit', 'sandbox'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>'); ?></div>
    <?php if ($comment->comment_approved == '0') _e('\t\t\t\t\t<span class="unapproved">Your trackback is awaiting moderation.</span>\n', 'sandbox') ?>
    							<?php comment_text() ?>
    						</li>
    <?php endif // REFERENCE: if ( get_comment_type() != "comment" ) ?>
    <?php endforeach; ?>
    
    					</ol>
    				</div><!-- #trackbacks-list .comments -->
    
    <?php endif // REFERENCE: if ( $ping_count ) ?>
    <?php endif // REFERENCE: if ( $comments ) ?>
    <?php if ( 'open' == $post->comment_status ) : ?>
    <?php $req = get_option('require_name_email'); // Checks if fields are required. Thanks, Adam. ;-) ?>
    
    				<div id="respond">
    					<h3><?php _e( 'Post a Comment', 'sandbox' ) ?></h3>
    
    <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    					<p id="login-req"><?php printf(__('You must be <a href="%s" title="Log in">logged in</a> to post a comment.', 'sandbox'),
    					get_bloginfo('wpurl') . '/wp-login.php?redirect_to=' . get_permalink() ) ?></p>
    
    <?php else : ?>
    					<div class="formcontainer">
    						<form id="commentform" action="<?php bloginfo('wpurl') ?>/wp-comments-post.php" method="post">
    
    <?php if ( $user_ID ) : ?>
    							<p id="login"><?php printf( __( '<span class="loggedin">Logged in as <a href="%1$s" title="Logged in as %2$s">%2$s</a>.</span> <span class="logout"><a href="%3$s" title="Log out of this account">Log out?</a></span>', 'sandbox' ),
    								get_bloginfo('wpurl') . '/wp-admin/profile.php',
    								wp_specialchars( $user_identity, 1 ),
    								get_bloginfo('wpurl') . '/wp-login.php?action=logout&redirect_to=' . get_permalink() ) ?></p>
    
    <?php else : ?>
    
    							<p id="comment-notes"><?php _e( 'Your email is <em>never</em> shared.', 'sandbox' ) ?> <?php if ($req) _e( 'Required fields are marked <span class="required">*</span>', 'sandbox' ) ?></p>
    
    							<div class="form-label"><label for="author"><?php _e( 'Name', 'sandbox' ) ?></label> <?php if ($req) _e( '<span class="required">*</span>', 'sandbox' ) ?></div>
    
    <div id="comment-user-details"><?php do_action('alt_comment_login'); ?>
    							<div class="form-input"><input id="author" name="author" class="text<?php if ($req) echo ' required'; ?>" type="text" value="<?php echo $comment_author ?>" size="30" maxlength="50" tabindex="3" /></div>
    
    							<div class="form-label"><label for="email"><?php _e( 'Email', 'sandbox' ) ?></label> <?php if ($req) _e( '<span class="required">*</span>', 'sandbox' ) ?></div>
    							<div class="form-input"><input id="email" name="email" class="text<?php if ($req) echo ' required'; ?>" type="text" value="<?php echo $comment_author_email ?>" size="30" maxlength="50" tabindex="4" /></div>
    
    							<div class="form-label"><label for="url"><?php _e( 'Website', 'sandbox' ) ?></label></div>
    							<div class="form-input"><input id="url" name="url" class="text" type="text" value="<?php echo $comment_author_url ?>" size="30" maxlength="50" tabindex="5" /></div>
    
    </div><!-- fb comments -->
    
    <?php endif // REFERENCE: * if ( $user_ID ) ?>
    
    							<div class="form-label"><label for="comment"><?php _e( 'Comment', 'sandbox' ) ?></label></div>
    							<div class="form-textarea"><textarea id="comment" name="comment" class="text required" cols="45" rows="8" tabindex="6"></textarea></div>
    
    							<div class="form-submit"><input id="submit" name="submit" class="button" type="submit" value="<?php _e( 'Post Comment', 'sandbox' ) ?>" tabindex="7" /><input type="hidden" name="comment_post_ID" value="<?php echo $id ?>" /></div>
    
    							<div class="form-option"><?php do_action( 'comment_form', $post->ID ) ?></div>
    
    						</form><!-- #commentform -->
    					</div><!-- .formcontainer -->
    <?php endif // REFERENCE: if ( get_option('comment_registration') && !$user_ID ) ?>
    
    				</div><!-- #respond -->
    <?php endif // REFERENCE: if ( 'open' == $post->comment_status ) ?>
    
    			</div><!-- #comments -->

    I have no idea what I’m doing wrong. Like I said, everything has been working fine with this plugin up to this point.

    Please correct me if I’m doing something wrong!!

    http://wordpress.org/extend/plugins/simple-facebook-connect/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter artwood

    (@artwood)

    Oh and let me clarify,
    I’m trying to get the fb comments to show up underneath each post that I publish.

    I have the same problem on my website….
    Hope we get an answer to this soon 🙂

    Thread Starter artwood

    (@artwood)

    Hi zorbiz,
    After a week of frustration I found an answer…

    Look up “Facebook Comments” by Alex Moss in the Plugins Directory.
    THE BEST and EASIEST Facebook Comments Plugin that I’ve found in my opinion. You literally install it, activate it, plugin the app ID and secret key, and you’re ready to go.

    I kept SFC for the “facebook photos import” module and the “publish to facebook” functions, but much of the other features never seemed to work properly for me.

    hell, I’ll just give you the link:

    This plugin SAVED me! Check it out.

    Thanks 🙂 I’ll try this…

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    That plugin integrates the FB Comments widget, which SFC does not and will not do. That is not the intent of the SFC Comments area, so if you were trying to do that, then yes, you wouldn’t have been able to get it to work.

    But what is the: Integrate FB Comments (needs automatic publishing enabled)

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    That part pulls comments back from auto-published posts on FB and displays them inline with the normal comments on the post.

    You can see this in action on my own site. Look for comments that say “this comment originally came from Facebook”.

    ok this is exactly what I want, but I can’t get it to work.
    Everything else seems to work.
    Apart from that the connection to facebook is broken, and I have to press Grant SFC Permissions all the time.

    Please help me Otto 🙂

    zorbiz

    (@zorbiz)

    When will there be an update on this plugin?

    Still can’t get this to work…

    Wow- Finally, I’ve found a discussion about my problem, “Integrate FB Comments (needs automatic publishing enabled)”. but, still problem Wow-

    SFC works well except “Integrate FB Comments”. I tested in various themes and many times, even new wordpress of other server. but, not works.

    I think problems are permissions or something. Because, when I published a post, It doesn’t work to publish automatically in FB. (two token checked!)

    help Plz~

    i cannot get one of my sites to work like the other. i want to use facebook connect to authenticate users for comments on the blog.

    this is the test blog that works how i like it:
    http://fish-nautique.com/wp/?p=14

    this is the one that is not working:
    http://www.swellvoyage.com/2012/05/2600-miles-ends-in-a-t-bone-not-a-steak/

    i also cant get tokens part working

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: Simple Facebook Connect] SFC Comments Not Working…’ is closed to new replies.