O'Reilly logo

Programming Social Applications by Jonathan LeBlanc

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Putting It All Together

Now that we understand the importance of the Person object in an OpenSocial container and the quantity of information that we can obtain from a user’s friendships, we can look more closely into these features and fit them neatly together into an OpenSocial gadget.

To showcase these features, we will create a gadget with the following requirements:

  • Display profile information for the current viewer, including name, photo, gender, profile URL, and any relevant links associated with the user.

  • Display a list of the current viewer’s friends.

  • When the profile image for a viewer’s friend is clicked, that friend’s profile will be displayed in place of the original viewer’s information.

Let’s look at the pieces that will need to be in place to build this gadget.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required