Google AJAX Feed API Example with Socialbrowse
They have a lot of great examples, but I thought I'd share mine with the usecase of showing the feed of my Socialbrowse shares. In your Socialbrowse settings you can specify a public share name. Once added 3 feeds will be created for you
where PUBLIC_NAME is the share name you chose.
For this example we're going to fetch and display the "shares rss" feed using the Google AJAX Feeds API. The example is simulating the Socialbrowse blog widget Zack created a few months ago.
To use the Feeds API you need to get a key.
Now we have everything we need. Create an HTML file and paste in the following code. Make sure to change YOUR_API_KEY, and the feed_title and feed_url variables to your values.
Viewing the page in a browser will result in something that looks like this
Its not very pretty but its easy enough to style it however you like using CSS. This code can be added anywhere you'd like to display your Socialbrowse shares.
Finally, note that this code can be used with any feed, not just Socialbrowse. If you want to display the latest Google News for example simply change the feed variables to
var feed_title = "Google News"; var feed_url = "http://news.google.com/news?pz=1&ned;=us&hl;=en&topic;=h#=3&output;=rss";