INICIO COMUNIDAD FORO SOBRE MÍ (Javier Reyes) MIS PROYECTOS SIXJUMPS

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 plugin manually:

<?php
widget_FacebookConnector(array());
?>

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 );?>


244 Responses to “Facebook Connect WordPress Plugin FAQs”

  1. Riawan Tamin says:

    I already upload the plugin to my web. but I have little problem with the picture..
    The image can’t show up. what’s wrong??

    thx for your help :D

  2. Cody says:

    if an author ia a Facebook Connect user the author link is broken under their post – it currently has:

    what should be there?

  3. Oops, typo! That last file should have been:

    fbconnect_widget.php

    Sorry!

  4. @Daniel Münster, I had the same problem where the targets were pointing to my client’s site URL but also the directory where the blog is (WP) which was throwing an error. For example, the site URL is http://www.jamesgunn.com but the targets were going to http://www.jamesgunn.com/wp.

    I determined that it was the “$siteurl” and “siteurl” tags in the following files:

    fbConnectCore.php
    fbConnectInterface.php
    invitefriends.php
    invitefriends.php

    I replaced “siteurl” with “home” in the areas where I wanted the target to go to my base URL (without the WP directory). This is tricky because there are places where you DO want it to point to the “siteurl” — mostly places where it needs to find files in the directory, like forms and style sheets.

    I am by no means an expert, I am just sharing what worked for me. I still have some minor issues to work out but at least the basics are working.

    Hope that helps.

  5. Bala Krishna says:

    Invalid Argument Error
    The Facebook Connect cross-domain receiver URL (http://blackcelebrity.net/magazine/wp-content/plugins/fbconnect/xd_receiver.htm#fname=_opener&%7B%22t%22%3A3%2C%22h%22%3A%22fbCancelLogin%22%2C%22sid%22%3A%220.110%22%7D) must have the application’s callback url (http://www.blackcelebrity.net/magazine) as a prefix. You can configure the callback url in the application’s settings.

    Hi i was getting this error and resolved. To fix the issue you need to enter your domain url in the Connect URL field. I am not sure this will work for everyone but it worked for me.

    For above site, connect url will be: http://blackcelebrity.net/magazine/wp-content/plugins/fbconnect/xd_receiver.htm

  6. Nick Dynice says:

    I would like to see the plugin render a page that shows all user comments, maybe 20 at a time, paginated, similar to BT-Active Discussions plugin, and similar to the list of comments in the FacebookConnector plugin’s user profile view.

  7. Jay Thompson says:

    I would like to put the FB connect button into my comment form. Just the button, not the thumbnails of the visitors. Is there a way to do this with some argument in ??

  8. Pfuy says:

    Here is the reason why it didn’t work for me with IE:
    although i added the wp_footer function in my footer, the facebook script didn’t appear on my site. i added the code manually and after that it worked great.

    FB_RequireFeatures(["XFBML"], function(){
    FB.Facebook.init(“your id here”, “http://www.yoursite/wp-content/plugins/fbconnect/xd_receiver.htm”);
    });

  9. Mark says:

    Hello, the plugin is working fine except when you click the option to “invite friends” the process goes thru but the user never receives an invitation. Any ideas on how to fix this?

    Hola, todo funciona bien excepto la operacion de invitar a usuarios, cuando clickeo en “Invitar usuarios” el proceso se completa pero nunca se recive la invitacion. Akguien sabe que debo hacer para que funcione la invitacion?

    Thanks!

  10. Kerry Mann says:

    Great Plugin !

  11. Chad says:

    Hey have you plugin installed and every things shows up like it supposed to but when a user goes to leave a comment and has it checked to send comment to facebook wall. It doesnt post it to their facebook wall. It post the comment fine on my blog. been when checking facebook…nothing shows up. Any suggestions greatly appreciated.

    Chad

  12. Juan Villani says:

    No me funciona el “Invita a tus amigos!” Que puede ser? En vez de un boton se ve un fondo gris con el texto pero sin link. Gracias!

  13. Yves says:

    Tx 4 great plugin,

    I have trouble though with my theme in Firefox (posts r outside their container)… in IE working fine….
    there must be a solution to this, no ?

    Tx 4 ur help !!!!!!!!!!!!!!

  14. sin embargo los comentarios que hago aqui si aparecen!

  15. lo probé en IE: Ok!
    Firefox: OK!
    Chrome: X (no piblica los comentarios en facebook)

  16. Realmente genial! Es justo lo que necesitaba. MUCHAS GRACIAS

  17. Casey Ervin says:

    Just wanted to say thanks!! I did have some problems getting people logged in with Super Cache, but found a solution that worked via Google. I’d imagine a lot of people could run into this.

  18. Doug says:

    Does anyone know if this works on WP 2.71 yet? I am having the same issue as many seem to have had regarding getting this error:

    Invalid Argument
    The Facebook Connect cross-domain receiver URL (http://blackcelebrity.net/magazine/wp-content/plugins/fbconnect/xd_receiver.htm#fname=_opener&%7B%22t%22%3A3%2C%22h%22%3A%22fbCancelLogin%22%2C%22sid%22%3A%220.110%22%7D) must have the application’s callback url (http://www.blackcelebrity.net/magazine) as a prefix. You can configure the callback url in the application’s settings.

    I have unchecked SSL, filled out canvas url, checked my callback url, and still no dice…

  19. Jeff says:

    Works great! Tested in Chrome, Firefox and IE! Great plugin. Stop by and try it out!

  20. Jeff says:

    Hooray! IE wasn’t working at all.. and then I removed that damn SSL Security tick.. works perfect now! Great plugin!

  21. John Morris says:

    What do you suggest if I’ve changed my header information as described above and I still cannot get the FBConnect button to show up in IE? Works perfect in Firefox. But, that blasted IE doesn’t want to show it for some reason.

    As I said, I modified the header info as you suggest. No dice!

    Problem page is here:

    http://johnmorrislive.com/2008/davins-first-halloween

    (Must be viewed in IE.)

  22. hola encontre buenisimo el proyecto pero tengo algunas dudas con la version 2.7 up 2.7.1.

    Cuando entras a Edit profile, los datos no aparecen como lo hace directamente en tu sitio.

    Me explico EJ,

    Casilla Nombre ( en blanco ) X
    Casilla Apellido (en blanco ) X
    Casilla Alias ( FB_6547****) OK
    Casilla Alias ( FB_6547****) OK
    Casilla Nombre Publicante ( FB_6547****) Sin mas opciones

    y el resto sin info, el punto que al publicar un comentario queda descrito como FB_6547*** y no con el nombre del perfil facebook.

    Como se puede solucionar esta diferencia.

    Gracias y felicitaciones

  23. Briana Como says:

    Got everything working. Now I’m wondering if I can style the “share” link that appears below each post. There are two borders that I want to get rid of. http://u4eablog.com/. It appears that the css for those borders is in an external stylesheet – http://static.ak.fbcdn.net/rsrc.php/z73TO/l/enlge7l2/en_US/141377/css/connect/fb_connect.css

  24. Turns out that you only see this button if your already connected (makes sense) and I was not.

    But I thought I was because the sidebar widget recognised me, gave a welcome message and displayed my avatar without actually login me in).

    This is a minor bug I suppose?

  25. @72 Mike and @ 73 Jayson. I’m not getting the send comments to Facebook button to appear either. (Everything else seems to work)

    Switched to default theme and no luck.

    Any advice or help much appreciated.

    PS: Thanks for this plugin.

  26. [...] Jadi penasaran, akhirnya saya cari-cari tutorial tentang itu, dan bertemulah dengan tutorial ini. Menurut tulisan itu, facebook memungkinkan menghubungkan account lintas website, sehingga user tidak perlu melakukan daftar 2 kali atau lebih ke beberapa situs yang ingin diikuti user tersebut. Caranya kita perlu membuat sebuah aplikasi yang menggunakan API Facebook tersebut. Namun, sampai saat ini saya belum bisa membuat aplikasi yang dimaksud :( , tapi, alhamdulillah ternyata untuk WordPress sudah ada pluginnya, salah satunya bernama Sociable. [...]

  27. Andrej Brda says:

    Hello I have just the same problem as Daniel Münster has

    I get an error page (404) when I click on Invite friends on on some profile on widget.
    it doesn’t use right URL for my blog -> which files source code do I need to change and where can I locate it?

    Thanks

    Daniel Münster problem is the same—->
    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!

  28. The issue of the checkbox not showing up is probably due to your theme. For kicks, I switched to the default wordpress theme, and presto! it worked. I grabbed the code for the comment submission form from the theme that worked, and slapped it into my beloved theme right under the comments display. Giddy up! Thanks Javier!

  29. Mike Mignano says:

    I’m not seeing the “Send To Facebook” checkbox, yet my theme includes the suggested code. Anyone else having this issue?

  30. NC says:

    As an update to the issues I was having with posting to FB from comments on a blog post.
    Here’s an error that users are reporting with IE:
    “Internet Explorer cannot open the Internet site
    http://sitename/date/posttitle/#comment-30
    where site name = my site, date = date of post, posttitle = Title of the post. and #comment-30 seems to refer to the comment number of the comment that users are trying to post.

    Please help!

  31. NC says:

    Anyone else experiencing this issue:
    - From Firefox – posting comments and having the popup to allow publishing to Facebook works fine
    - From safari – the check box for publishing to Facebook is there, but upon submitting a comment, there’s no popup to confirm publishing to facebook and there’s no update in Facebook, but comment posts on the blog post
    - From IE in windows, the checkbox for publishing to Facebook doesn’t show up at all…

    Any help would be appreciated, I already tried adding :
    <form action=”/wp-comments-post.php” method=”post” id=”commentform”>
    before
    ID); ?>

    in the comments.php file.

    Please help!

  32. TopherX says:

    What template is called by the plugin for the “user profile” pages or the “invite your friends” page? The widget seems to work but my template isn’t liking it, and I can’t figure out which template has the problem. My own author.php file works fine, do I need to make a special template for the plugin to use?

  33. Mehrab says:

    I have problem with this plugin. as you can see in my blog, if you click on picture of any connected people, it would go to an index page of blog instead of that person’s profile. what should I do to make it work?

  34. Mike says:

    Is there any way to control the width of the widget? I would like mine to be just 3 ‘pics’ wide, but right now it seems to take 100% of the sidebar width.

  35. henry says:

    Hi, I inserted the code:

    ID); ?>

    above the in the comments.php file for my current theme but the send comments to facebook still does not show up. Is there something i am doing wrong?

  36. Chad says:

    I do have another question…… I like the Community function shown in the tutorial video….. how do I get that and make it available on my blog… I don’t see a place to activate it. What do i need to do to get this working?

    Chad

  37. Chad says:

    Man do i need to learn to read more carefully….sheesh….found the solution.

  38. Chad says:

    I am also experiencing upon connecting with facebook the user profile picture doesnt show up…just a small question mark. Any ideas on how to fix this?

    Greatly appreciated and nice work…. i love it.

    Chad

  39. Eric says:

    Here is a screencap of what I’m talking about. It appeared that #3 addressed this, but I did as it said and I still can’t see the whole window to submit it…nor can visitors who might come by and invite their friends.

    http://dharmadork.com/wp-content/uploads/2009/01/firefoxscreensnapz010.jpg

  40. Eric says:

    added this code to comments.php, but the form is still cut off and it renders it unable to send:

    ID); ?>

  41. Jaime R. says:

    Alquien sabe ¿cómo le doy estilo? No se adapta al diseño de mi sitio.

  42. Javier Reyes says:

    Hi Mike,
    download this file:
    http://www.e-aula.com/download/fbconnect_widget.zip

    and uncompress on your wordpress theme directory. This new fbconnect widget don’t show the wordpress login url.

  43. Mike says:

    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

  44. Vinko says:

    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?

  45. Jacob says:

    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!

  46. Jacob Lipman says:

    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!

  47. Aaron says:

    Thanks Javier, that seemed to do the trick!

    Do you think functionality will be added in order to connect to a Facebook Fan-Page?

  48. Javier Reyes says:

    Hi Aaron,
    there is a problem with the Facebook SSL certificate, you can disable de SSL security from the plugin configuration page.

  49. Aaron says:

    Mostly installed without a problem, but the application isn’t pulling the photos from Facebook profiles in.

    Am I doing something wrong?

    http://www.lisnagarvey.com

Leave a Reply

Login with Facebook: