Millions of sites are using Google Friend Connect (GFC) to provide their visitors social features. GFC is on so many sites because it can be added by site owners who have no programming experience, by copying and pasting snippets of code from http://www.google.com/friendconnect.
However, since Google Friend Connect also provides a rich set of APIs, programmers can create deep integrations with their existing sites. If you have JavaScript or server-side programming skills, read on to learn more about the different ways you can take advantage of Google friend connect.
| Desired Feature | Programming Skills Required | Recommended Google Friend Connect Usage | |
|---|---|---|---|
| Site Owners | Socializing a web page by inserting pre-made social apps. | Ability to edit HTML, copy and paste basic JavaScript. | Basic non-programming usage of Google Friend Connect |
| Integration of Google Friend Connect social data directly into your web page with JavaScript alone. | Some JavaScript and AJAX programming skills. | Google Friend Connect JavaScript API | |
| Direct server-side integration with Google Friend Connect. | Knowledge of the OpenSocial RESTful and RPC protocols and at least one of the languages supported by the OpenSocial client libraries. | Server-side integration with GFC's REST/RPC Protocols | |
| Integrate Google Friend Connect with blogs, content management systems and/or forums. | No programming necessary, simply install and use the plugin in the supported environment. | Using GFC plugins on popular blog, CMS and forums | |
| Gadget Developers | Build gadgets that can run on Google Friend Connect sites. | Technical knowledge of how to build gadgets. Knowledge of OpenSocial APIs is also required for social gadgets. | Building Gadgets for GFC |
A basic usage of Google Friend Connect (GFC) allows site owners to add snippets of code to their sites without any programming and instantly provide it with social capabilities so that visitors can:
To get started with a basic, non-programming usage of Google Friend Connect, visit the site: http://www.google.com/friendconnect.
In contrast to a basic usage of Google Friend Connect where access to OpenSocial is through the hosting of gadgets, the Google Friend Connect JavaScript API allows you to directly link any content from a Google Friend Connect site to your page using JavaScript. The JS API has the following attributes:
For further information on how to use the JavaScript API (JS API) for Google Friend Connect, click here.
Because Google Friend Connect supports the OpenSocial REST/RPC protocols, it is possible to access OpenSocial from a GFC site entirely outside of a gadget or a web page. This opens up GFC OpenSocial data to any web technology that can access the GFC site directly via OpenSocial's REST/RPC protocol. Accessing a GFC site through REST/RPC has the following properties:
To get started with server-side programming integration of Google Friend Connect, click here.
The Google Friend Connect plugins allow you to integrate users with external accounts into your site. A user can visit your site and leave a comment with an account from a Google, Yahoo! or any site that implements OpenSocial REST/RPC protocols such as Plaxo, hi5, and MySpace.
Some of the initial plugins include:
These plugins are part of an open source project -- your contributions are welcome!
For more information on the GFC plugins and its open source development project, click here.
Since millions of sites are GFC-enabled, a gadget developer has the ability to host their gadget on any of these sites. This presents a vast new opportunity for gadget developers as well as OpenSocial application developers to publish their gadget applications.
GFC for gadgets supports essentially the same programming paradigm as traditional gadgets or OpenSocial applications with little or no modification
There are typically three ways to build gadgets for a GFC site:
For more information on building gadgets for GFC, click here.
And finally, here are some useful tips about how Google Friend Connect works together with other OpenSocial networks.
For more technical information on OpenSocial, click here.