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. Pingback: Utilize the Mini-Feed from Facebook for your blog | Wedding Photographers Blog

  2. I am having the same problem on a WP 2.6.x site. When I tried to activate the plugin I receive the following:

    Fatal error: Cannot redeclare class services_json in /var/www/html/blog/wp-content/plugins/fbconnect/facebook-client/jsonwrapper/JSON/JSON.php on line 116

    On my own blog which is a WP 2.7 site with almost the same plugins is working perfectly.

    Does anyone know what I need to remove among my plugins, that is causing this conflict?

  3. Javier, I believe I solved the problem. For anyone who has a similar issue, make sure you’ve filled out all the tabs for your app on facebook. For me, the trick was (not surprisingly) updating the “canvas” tab.

    Great plugin, thanks!

  4. Thanks for the plugin Javier. I have a problem that seems similar to Courtney and Pablo above, but none of their solutions seem to work. When users input their facebook login information after clicking on the “connect with facebook” link on the widget they get the following error message from facebook:

    “Invalid Argument
    The Facebook Connect cross-domain receiver URL (http://forcechange.com/wordpress/wp-content/plugins/fbconnect/xd_receiver.htm#fname=_opener...) must have the application’s callback url () as a prefix. You can configure the callback url in the application’s settings.”

    I tried to set the “callback url” on the application page on facebook to “http://forcechange.com/” but it says:

    “Validation failed.
    Canvas Page URL must be at least 7 characters long.”

    Any suggestions? Thanks so much!

  5. So a couple of things; all of the language that comes up for connecting is in Spanish? How do I get it into English?

    Also, I want there to be ONLY a ‘Login using Facebook’ option; IE, I don’t want to see the ‘Already a member?’ Loging, which logs in directly with WordPress.

    Mike

Leave a Reply