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: Add Facebook Connect to Your Site | geekTips

  2. I installed this and it seems working properly, until I found out that my other facebook related plugins stopped working. The plugin are wordbook and fotobook. The error message on the logs is:
    [code]
    2009-01-09 06:30:07: (mod_fastcgi.c.2610) FastCGI-stderr: PHP Fatal error: Cannot redeclare class FacebookRestClientException in /var/www/tesna.net/wp-content/plugins/fotobook/facebook-platform/client/facebookapi_php5_restlib.php on line 1797

    2009-01-09 06:36:23: (mod_fastcgi.c.2610) FastCGI-stderr: PHP Fatal error: Cannot redeclare class FacebookRestClientException in /var/www/tesna.net/wp-content/plugins/wordbook/facebook-platform/php/facebookapi_php5_restlib.php on line 2026
    [/code]

    it seems that fb connector also using the same file, but I’m not sure why fb connector still runs properly, where the others don’t. If I deactivate fb connector fotobook and wordbook runs normal.

    Can you guide me on how to fix the problem?

  3. Thanks a lot for this plugin, but I’ve got a little problem when i tried to activate it

    If I get the error:
    Plugin could not be activated because it triggered a fatal error. Fatal error: Cannot redeclare class services_json in /var/www/vhosts/jessicafillol.com/httpdocs/wp-content/plugins/fbconnect/facebook-client/jsonwrapper/JSON/JSON.php on line 116

    What should I do?

  4. Hi,
    I just need some help with probably a minor issue. When ever I try to invite friends I get a 404.
    I think that this has something to do with my blogsetup. My blog is under http://www.e-driven.de . wordpress 2.7 is installed under http://www.e-driven.de/e-blog/wordpress

    e.g. inviting people leads to the url:
    http://www.e-driven.de/e-blog/wordpress/?fbconnect_action=invite
    I think it should be:
    http://www.e-driven.de/?fbconnect_action=invite
    Any ideas how I can fix this?
    Thanks a lot!

  5. Is there any way to associate your Connect application with a Facebook group so you have a page on Facebook to which users can subscribe, comment, etc.?

    Thanks

    Brilliant program by the way though I’m still not seeing any way to push comments to Facebook. (see my comment above)

  6. A mi me da el siguiente error al intentar ver el perfil de alguien…

    Warning: include(WP_PLUGIN_DIR/fbconnect/userprofile.php) [function.include]: failed to open stream: No such file or directory in /home/content/g/u/a/guarara/html/jaguatelevisor/wp-content/plugins/fbconnect/myhome.php on line 10

    Warning: include() [function.include]: Failed opening ‘WP_PLUGIN_DIR/fbconnect/userprofile.php’ for inclusion (include_path=’/home/content/g/u/a/guarara/html/jaguatelevisor/wp-content/themes/moo-point:/home/content/g/u/a/guarara/html/jaguatelevisor/wp-content/plugins/fbconnect:WP_PLUGIN_DIR/fbconnect/:.:/usr/local/php5/lib/php’) in /home/content/g/u/a/guarara/html/jaguatelevisor/wp-content/plugins/fbconnect/myhome.php on line 10

    Comentarios del usuario

    Warning: include(WP_PLUGIN_DIR/fbconnect/usercomments.php) [function.include]: failed to open stream: No such file or directory in /home/content/g/u/a/guarara/html/jaguatelevisor/wp-content/plugins/fbconnect/myhome.php on line 21

    Warning: include() [function.include]: Failed opening ‘WP_PLUGIN_DIR/fbconnect/usercomments.php’ for inclusion (include_path=’/home/content/g/u/a/guarara/html/jaguatelevisor/wp-content/themes/moo-point:/home/content/g/u/a/guarara/html/jaguatelevisor/wp-content/plugins/fbconnect:WP_PLUGIN_DIR/fbconnect/:.:/usr/local/php5/lib/php’) in /home/content/g/u/a/guarara/html/jaguatelevisor/wp-content/plugins/fbconnect/myhome.php on line 21

    y cuando le doy al fconnect:
    Argumento no válido

    La URL del receptor de varios dominios de Conecta de Facebook (http://www.tercermundo.ws/jaguatelevisor/wp-content/plugins/fbconnect/xd_receiver_ssl.htm#fname=_opener&%7B%22t%22%3A3%2C%22h%22%3A%22fbCancelLogin%22%2C%22sid%22%3A%220.404%22%7D) debe contener la URL de devolución de llamada de la aplicación (http://www,tercermundo.ws/jaguatelevisor/) como prefijo. Puedes configurar la URL de devolución de llamada en la configuración de la aplicación.

    ¿Cuál podría ser el problema? El calback de la url la debo poner con o sin »www«. ¿Podría ser ese el problema? Gracias de antemano…

  7. Hi Javier,

    Thanks for this plugin. Looks great !
    But I’ve got a fatal error when I’m trying to activate it.
    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /homez.47/dhordain/www/wp-content/plugins/fbconnect/fbConnectCore.php on line 227

    I run WP 2.7

    Thanks for your help.

  8. Sorry, I’ve got another that I’ve just discovered, feel free to merge with my previous comment. This code, the code used to add the widget manually

    Is causing a replication of the content preceeding it. I have an H3 tag before it and I get this: CommunityCommunity

    Strange thing is that it is only in IE. You have to see it to understand: http://www.obrienstore.com

Leave a Reply