Facebook Connect WordPress Plugin FAQs


1.My WordPress Theme dont support widgets, What can i do?

If your wordpress don’t support widgets, you can add the FB Connect widgets manually:

<?php
$args=array();
$args['loginbutton'] = "xlarge"; //value: small,medium,large,xlarge
$args['maxlastusers'] = "10"; //Max. user photos to display
$args['avatarsize'] = "30"; //User photos size
widget_FacebookConnector($args);
?>

 

2. IExplorer don’t show the login button and user photos

On some wordpress themes you need to modify your “header.php” file:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">

......

and check your “footer.php” theme file: if don’t have a < ?php wp_footer(); ?> line
Add it before the end body tag:

...
<?php wp_footer(); ?>
</body>
</html>

 

 

3. I can’t see the Send to Facebook checkbox, on the comments form
Check your comments.php Theme file, and add this code line:

...
...
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
...
...
<?php do_action('comment_form', $post->ID); ?>
</form>
...
...

 

4. I can’t see the Facebook user photo on the comments
FB Connector plugin use the get_avatar WordPress filter, to show the Facebook user photo or the Gravatar user image (based on the email).
Sample comments.php theme file that call this filter:

...
...
<?php foreach ($comments as $comment) : ?>

<li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
<?php echo get_avatar( $comment, 32 ); ?>
<cite><?php comment_author_link() ?></cite> Says:
...
...

 






5. How to configure the invitation limit
Facebook changed the notification/invitation limit from a fixed to a fluctuating limit based on user spamminess ratings. A formula based on some parameters like your historical invitation acceptance rate.
From your Facebook application admin page, you can see the current “allocation” limits.
Go to: Facebook app admin->statistics->Allocations.

6. How to show post author avatar (Gravatar or Facebook profile)
Use this code at the WP bucle (index.php or single.php):

<?php echo get_avatar( $authordata->ID,50 );?>

 

7. How to show facebook login button without the widget

Edit your WP theme files and paste this code:

<?php include(FBCONNECT_PLUGIN_PATH."/fbconnect_widget_login.php");?>

316 thoughts on “Facebook Connect WordPress Plugin FAQs

  1. I have the same problem as Jayson. Everything works great EXCEPT that I have no “publish this comment to Facebook” checkbox nor are comments being published to Facebook. Apprecite the FAQ and help!

  2. Thanks Javier. You must be getting tired of saying that for us Safari / Firefox users! Any ideas for my question about the “publish this comment to Facebook” checkbox? I assume I need to modify my wp-comments-post.php…

  3. I found a bugs from “fbConnectLogic.php” file, at function comment_fbconnect($comment_ID).
    the variable name there are different from preset template variable in setting page.

    For those of you cannot send comment back to your facebook page, simply delete the existing template ID, and insert these codes into the template setting page, and create a new template ID and activate it will do.

    One line stories template:
    {*actor*} commented on the {*blogname*} post item – {*post_title*}.

    Short stories template:
    {*actor*} commented on the {*blogname*} post item – {*post_title*}.

    Body
    {*body_short*}

    Full stories template:
    {*actor*} commented on {*blogname*}, post title: {*post_title*}

    Body
    {*body*}

  4. It just weird, every seems fine, but once i tried to leave comment, and it return this error:

    Application response error

    Supplied template data does not cover the following tokens [blog-url, blog-name, post-url, post-title] needed for template ‘{*actor*} commented on the {*blog-name*} blog post \”{*post-title*}\”.’ You can see this because you are one of the developers of the app.

    Why? Im sure my template ID is activated.

  5. I think I’m having the same problem as Pablo. I’m using a custom theme that’s not widget-ready, and I’ve placed the code where I want it to be.

    Nothing works. The logout button goes nowhere, and the Facebook don’t either. The weird thing is that the plugin works perfectly with my default wordpress theme.

Leave a Reply