How to use Google URL Shortener service in JSF pages

Google URL shortener service is available free for up to 1,000,000 queries per day against shortened URLS of an account. Is it recommended to use an API key when using the service specially when shortening calls to the API are through an application. You may register to the service in this Google site. Visit the Google URL shortener service here to shorten a URL interactively.

We will demonstrate in this blog how to use Google URL shortener in JSF projects for use with Twitter share data-url. This blog assumes that you already have an API key.