Google FriendConnect API

friendconnect-logoI’ve been following the #pubcon conversation with interest, and here is the official announcement :). All I can say… look here. Thanks to Matt and Anindo of Google for their help on this!

Tags: runs on the Genesis Framework

Genesis theme frameworkThe Genesis Framework empowers you to quickly and easily build incredible websites with WordPress. Whether you're a novice or advanced developer, Genesis provides you with the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go.

Read our Genesis review or get Genesis now!

79 Responses

  1. webdesignBy webdesign on 12 March, 2009

    Nice possibility for FriendConnect i will be looking to implement it soon :) Do you know if alot of users already make use of this ? or do they have to make a Friendconnect account ?

  2. Chung Bey LuenBy Chung Bey Luen on 12 March, 2009

    Great plugin, thanks.

  3. JoostdeValkBy JoostdeValk on 12 March, 2009

    Let’s see what happens now.

  4. LeeRobertsonBy LeeRobertson on 12 March, 2009

    Wow that was fast!

    Trying it out now.

  5. ElendilBy Elendil on 12 March, 2009

    One question, how to made for, when I click in a nickname, go to profile of Google Friend Connect?

    • Joost de ValkBy Joost de Valk on 12 March, 2009

      I’m afraid I’m not fully sure I get your question right, but it takes you to the google friendconnect profile on the current site at the moment, as the API doesn’t give back more data yet… As soon as they return other URL’s, I’ll start using those.

  6. ElendilBy Elendil on 12 March, 2009

    I see, thanks for this plugin!

  7. AnneJanRoeleveldBy AnneJanRoeleveld on 13 March, 2009

    It works very well! Thanks for sharing this.
    An issue to solve: the nickname is written without spaces between your first and surname.

    • Joost de ValkBy Joost de Valk on 13 March, 2009

      Yeah I know, I’m looking into what’s causing that :)

  8. donnachaBy donnacha on 13 March, 2009

    So, could the same post give people the choice of signing in with either Google FriendConnect or Facebook Connect if you also used the Facebook Connect plugin?

    • MarcBy Marc on 13 March, 2009

      Joost, if you could make a plugin to do this, it would be greatly appreciated.

      The Facebook Connect plugin for WordPress listed on isn’t very good at all.

      TechCrunch has a much better implementation of Facebook Connect, but it looks like they’re using their own custom WordPress plugin.

      • Joost de ValkBy Joost de Valk on 13 March, 2009

        Isn’t TechCrunch using the plugin those Spanish guys wrote? I think they’re called Sociable (exactly like my plugin is).

      • BillyVierraBy BillyVierra on 14 March, 2009

        While I like the idea of having a Facebook Connect plugin as well, I think that it would be a better idea to get Google to add it in to their code, kind of like you have both AIM and Yahoo as well in this code… I know this is wishful thinking but it makes a lot more sense than having multiple plugins that in reality all do the same thing with different sites :)

      • MarcBy Marc on 16 March, 2009

        I don’t think TechCrunch is using Sociable. I remember reading a comment from one of the TechCrunch guys a few months ago saying that they did the implementation in-house.

    • MorgaineBy Morgaine on 27 July, 2009

      I use this plugin in combination with the RPX plugin, which provides my visitors with oodles of ways to sign in, among which Facebook and Twitter. Just added the Google Friend Connect plugin today, but it seems to be working fine.

  9. MarcBy Marc on 13 March, 2009

    I was wondering what’s the difference between this plugin and ? It looks like they do the same thing?

    • Joost de ValkBy Joost de Valk on 13 March, 2009

      Mine is based on that code but has loads of improvements already, as well as a backend for you to enter your FriendConnect ID etc. Check the full changelog here.

  10. JoeBy Joe on 15 March, 2009

    I just want to test whether or not my Gravatar shows up when i Don’t sign in theu FriendConnect.

  11. JoeBy Joe on 15 March, 2009

    I just want to see if my Gravatar shows up when i Don’t sign in thru FriendConnect.

    • Joost de ValkBy Joost de Valk on 15 March, 2009

      Hey Joe, apparently it doesn’t… I’ll check what’s causing this bug in the FriendConnect plugin.

    • Joost de ValkBy Joost de Valk on 15 March, 2009

      Ok I’ve just fixed it :) thx for helping me notice the bug, 1.0.3 on it’s way!

      • EvertJanBy EvertJan on 15 March, 2009

        That’s quick! I’ve implemented it on now. Thanks.

  12. palaBy pala on 15 March, 2009

    no .css file in 1.0.3?

    • Joost de ValkBy Joost de Valk on 15 March, 2009

      No the css has been reduced to two lines, and is added in the head, to save a file call.

  13. JoeBy Joe on 15 March, 2009

    Wow, you are awesome! Nice, quick turnaround on that one. Maybe Google should pay you. :)

  14. Evert JanBy Evert Jan on 15 March, 2009

    Btw, it seems that “Notify me of followup comments via e-mail” is not working when using GFC when replying, since it uses a address to subscribe.

    • Joost de ValkBy Joost de Valk on 16 March, 2009

      No it won’t work, I’m checking to see whether there’s a way to disable it when you’re logged in through FriendConnect.

  15. Showbiz Intriga? Get It From Boy!By Showbiz Intriga? Get It From Boy! on 15 March, 2009

    does not work for me. says it has a broken fc something on directory..error manifests in ALL comments. commenter name is replaced by the error i disabled it. and everything is back to normal. i hope you fix this. i really like the idea behind this plugin.

    • Joost de ValkBy Joost de Valk on 16 March, 2009

      please copy paste the complete error message here, and I’ll look into it :)

  16. JoeBy Joe on 16 March, 2009


    Great work, I love the plugin, One thing: I cannot seem to get the Friend Connect user avatars to appear in my comments list. Any idea why? It seems to default to the Gravatr icon now for ALL users.

    • JoeBy Joe on 16 March, 2009

      I am using the typical gravatar code to display them, as shown: “”

    • JoeBy Joe on 16 March, 2009

      Ok that didn’t display properly, sorry: get_avatar( $comment, $size = ’50′)

      • Joost de ValkBy Joost de Valk on 16 March, 2009

        Hmm that’s weird, echo get_avatar($comment,$size='48' ); works here, as you can see, as people have FriendConnect avatars too… Any error in either the page of the error log?

      • JoeBy Joe on 16 March, 2009

        Nope, no errors at all. Gravatars work fine, as per your fix, but the Yahoo avatars on the actual comments is not working.

      • JoeBy Joe on 16 March, 2009

        Here is an example: the one comment on this page, from “kgboogie”, is via FriendConnect…but as you can see the avatar is defaulting to the “grey man” icon, while this particular FC user DEFINITELY has an icon, as they noted it did in fact display below the comments box after signing in:

      • JoeBy Joe on 16 March, 2009

        Hey man, any ideas? I am desperate here…I tried re-editing my comments.php file to its original state, but even that didn’t work. What could I possibly be missing?

      • JoeBy Joe on 18 March, 2009

        Any word on this issue? I understand I may very well be the only one experiencing this, but cannot seem to figure out what may be the cause. Do you know of any JavaScript or other plugins that may be causing a conflict?

  17. MarkBy Mark on 16 March, 2009

    Hey Joost!

    Fantastic work here, well done! I have a question though, I would love to know if what the best Facebook Connect plugin is out there, cos the spanish one and the official Facebook one is not that great..

    Thank you very much!

  18. T3MEDIABy T3MEDIA on 16 March, 2009

    There is one that works with plaxo… Its more of a hack than anything else.
    With it… you have people sign up from a smorgasbord of websites.

  19. JoeAscanioBy JoeAscanio on 16 March, 2009

    Just want to see if the FriendConnect icon appears beside the comment…it won’t work on my blog!

    • JoeAscanioBy JoeAscanio on 16 March, 2009

      is anyone else having this issue?

  20. Evert JanBy Evert Jan on 17 March, 2009


    When I am not logged in through GFC, I see only 16 replies on this page instead of 41! Is this a feature or a flaw?

    • Evert JanBy Evert Jan on 17 March, 2009

      And now that I logged out from GFC, I do see all comments. I had never logged in to GFC from this PC before and I didn’t see all comments until I first logged in. After logging out, I still see all comments. Strange huh?

    • Evert JanBy Evert Jan on 17 March, 2009

      Unfortunately, I cannot reproduce this. Even after deleting cookies, I can’t find anything wrong now. I am lost… ;)

  21. PeterBy Peter on 17 March, 2009

    BUG: Your blog does nothing. if I login with the FriendConnect, is refreshed only.

  22. PeterBicsakBy PeterBicsak on 17 March, 2009

    Problem: This e-mail address I use both systems. (gravatar and GFC)

  23. shibuya246By shibuya246 on 18 March, 2009

    when i sign in on your webpage under the POST YOUR COMMENT button, it loaded my details and then refreshed the entire page and focused me back at the top. Is that supposed to happen? I have the same issue when I implemented on my own site and got an endless loop refresh somehow.

  24. JoeBy Joe on 18 March, 2009

    Testing Gravatar again.

  25. shibuya246By shibuya246 on 19 March, 2009

    How can we also use this plugin to have a full login for the site rather than just the comment section?

  26. JoeBy Joe on 21 March, 2009

    Has support for this plugin stopped?

    • Joost de ValkBy Joost de Valk on 21 March, 2009

      No certainly not, looking into some bugs right now, unfortunately (well actually, luckily :) ), I have a full time job so my time to code is limited.

  27. JoeBy Joe on 21 March, 2009

    I completely understand, I am in the same boat!

  28. shibuya246By shibuya246 on 22 March, 2009

    idea – would it make sense to save the GFC ID as a separate field in the table as well?

  29. RickyBy Ricky on 25 March, 2009

    There is a weird bug that was happening when I tried to login to your site yesterday and is happening on my site today. Someone else looks like they are having the same issue. When you login, GFC says “Settings, Invite, Loading Profile…” as soon as it starts to load, the page refreshes and it gets caught in an endless loop. Do you know how to fix the issue?

  30. RickyBy Ricky on 25 March, 2009

    I believe the part causing issues has something to do with

  31. CanebluBy Caneblu on 28 March, 2009

    Hi Joost, thanks for the great plugin. Three questions, you provide friendconnect.js on package.. why? is different from original hosted at Google?
    Is not better use the original one, also for caching improvements?
    Thank you :)

  32. DavyWolfBy DavyWolf on 29 March, 2009

    I have enabled the Google friend connect wordpress plugin on my site, but it’s not showing the gravatars.

  33. JoeBy Joe on 5 April, 2009

    Still unable to get the plugin to display Gravatars OR Google Friend Connect avatars…..

  34. RobertWallisBy RobertWallis on 6 April, 2009

    It’s great that you are putting so much effort into this plug-in. The major problem with Friend Connect is it’s lack of penetration. As soon as all the wordpress installations get a sniff of the benifits it will ramp up the user base and that’s when things will really take off.
    Although the site I run isn’t wordpress based efforts like yours will help up all out in the long run.
    Cheers and thanks!

    • RobertWallisBy RobertWallis on 6 April, 2009

      Note to self… scan for typos before hitting post!

      Seems to work great though.

      The only gripe I have isn’t with the plugin, but with your canvas page.
      Why don’t you style it so it fits in with the site?
      I’m sure that as friend connect evolves, allot of interaction and exploring will take place on the “canvas.html” page.
      Getting it to “fit in” is only a 5min job!


  35. CarrieBy Carrie on 8 April, 2009

    I am working on a website for a friend and I am getting this funky error when trying to activate the plugin:

    Cannot redeclare fc_wp_get_avatar() (previously declared in xxx/xxxx/public_html/wp-content/plugins/wordpress/src/fc_plugin.php:54) in xxx/xxxx/public_html/wp-content/plugins/friendconnect-1.0.3/fc_plugin.php on line 98

    Was wondering if anyone else had this problem.

  36. CarrieBy Carrie on 8 April, 2009

    OOps never mind, this is what I call a blonde moment of the day!

    I saw that I had the google wordpress plugin still in the plugin directory. Once I erased it. It worked. Thanks for the great plugin!

  37. drcypherBy drcypher on 20 April, 2009

    I think I will install this plugin too :)

  38. 24SevenBy 24Seven on 25 April, 2009

    Hope your plugin works better than the one offered from the GFC link. Will give it a shot.

    • 24SevenBy 24Seven on 25 April, 2009

      Fits like a Glove – Great Work!

  39. KateBy Kate on 7 May, 2009

    I just started a new blog that I put live tonight. I also installed GFC for the first time, in addition to installing your plugin. But, while the GFC widget is showing up in the sidebar, the “Sign In” button (from the plugin) is not. I did a view source and I see that the plugin code is being generated in the header. Any idea what might cause the button to not show?

    It may be a simple answer… I’m just not familiar enough with it to know! :) Any help would be appreciated.

    • MichaelBy Michael on 10 May, 2009

      You might try going into “Discussion” under “Settings” in your admin panel and unchecking the “Must be a registered user and logged in to comment” box. I had to do this to get the button to appear, but in all honesty, I was using the GFC plugin that is hosted and shown on the google friends connect web page. (I also used Joost’s plugin before I tried the google GFC plugin and got the same result….that is, button doesn’t show when the “Must be a registered user….” box is checked.) One of the things Joost stated when he advertised his plugin is that we could have this option…having registered and logged in users. Joost, if you’re reading this, please fix this because I really NEED this for my site. Also, I would really like to use your plugin because it’s pretty straightforward compared to the other GFC plugins.

      • KateBy Kate on 10 May, 2009

        Thanks for the tip, Michael. I already have it unchecked, though. Hmmm…. Hope I get it figured out. I’m planning on looking at it again today. Thanks again!

  40. KateBy Kate on 10 May, 2009

    I should clarify/update: I just checked again, and I didn’t see anything in the header. (Is there supposed to be?) I could’ve sworn I saw something the other day. Thanks in advance for any help!

    • KateBy Kate on 11 May, 2009

      Sorry, one more update. I was running the site through the validator, and I noticed that some of the code from the plugin is indeed being generated. Here’s a snippet from the end:

      Thanks again for any help you can provide!

      • KateBy Kate on 15 May, 2009

        Sorry about that… I was trying to show that a break tag and a div with the id “profile” were being generated when the plugin is activated. But, that is the only “extra” markup that I see in the code. Still no Google Sign In button. I’m having more people join the site and I’d like to get this sorted out. Again, I appreciate any help! :)

  41. NickBy Nick on 23 May, 2009

    Has there been any resolution to the ‘page constantly refreshes’ problem? Would really like to get this great plugin working on my site!

  42. MattBy Matt on 31 May, 2009

    Hi there, I love the idea of this plugin, but I can’t seem to get it to work. All it seems to do is disable the commenting function. I’m using a revolution theme; is it possible that the plugin isn’t compatible with that particular theme..?

  43. CalebBy Caleb on 11 September, 2009

    Hmm, for some reason this isn’t working for me. When I require registration to comment, all I get is the “You must be logged in to post a comment” message. There’s no GFC login or anything.

    In your instructions you say to add “” right after the ” You must be …” area in comments.php. However, in my theme comments.php doesn’t contain this line. The line is instead located in comments-form.php

    So I modified comments-form.php like so:

    You must be <a href="/wp-login.php?redirect_to=”>logged in to post a comment.

    But I’m still not having any luck. The user is only directed to create an account on the site, not a GFC account. Any ideas?

    • CalebBy Caleb on 11 September, 2009

      oops, looks like the comment form stripped out my code.

  44. JeromeBy Jerome on 14 September, 2009

    Hi, I am using wp-framework 2 theme for wordpress. I installed your plug-in and I entered my information in the back-end. What is suppose to happen now? I don’t see that sign-in button anywhere on my pages or next to my comment form. ???

  45. forhairBy forhair on 19 October, 2009

    Thank you for this information, very useful.