Build your online social graph

Mar 24, 2008

A few weeks back, Google released their Social Graph API – a JSON service that gives you access to Google’s information about your online presence. A C# wrapper is available for download at the bottom. 

How it works

This video explains it better then I can:

[youtube:LabCylbapuM]

Try it yourself

For some strange reason, Google has only made the API available in JSON and that sucks if you want to use it from anything else than JavaScript. Since I wanted to use it from C# I built a small wrapper class that exposes all the features from the very simple API. You can try it yourself from the demo social graph page I wrote using the wrapper class. Just enter your blog URL in the input box.

Download

The wrapper is just a single small class that you can dump into your App_Code folder and you are ready to go. The demo web page is also included in the download so you can see how to use it. It’s just a single .aspx page.

socialgraph.zip (3.80 kb)

* $4.95/month BlogEngine.net Hosting – Click Here!

Comments (7) -

Manu Temmerman-Uyttenbroeck
Manu Temmerman-Uyttenbroeck United States
3/25/2008 5:28:28 AM #

Hi Mads,

I know you're not very fond of using external tools. But anyway. http://james.newtonking.com/pages/json-net.aspx

Ability to convert JSON to and from XML

test de autoescuela
test de autoescuela Spain
3/26/2008 2:57:04 PM #


  I know that exist some aplications very good for this job. Can you tell me about someone?

        Thank you

Denis
Denis Russia
3/28/2008 4:20:40 AM #


here is a JavaScript example: http://www.servletsuite.com/socialwidget.htm

Juan
Juan Argentina
5/13/2008 6:16:30 PM #

Hi, I don't think I quite understand how this works... I use your demo page and get very few links, even though I have a few sites pointing in to my blog, and try to use XFN... in contrast if I enter your URL you have a lot of inbound, outbound, Verified claims, Unverified claims

Do you have any tips on how to improve this web of connections? Is it enough to use XFN in links and just wait for it to be indexed?

Thanks, I find your blog very interesting

Dan
Dan Russia
5/14/2008 6:02:48 AM #


>Do you have any tips on how to improve this web of connections? Is it enough to >use XFN in links and just wait for it to be indexed?
should be indexed of course

Josh
Josh
10/17/2008 3:50:28 AM #

I enter the URL to a public myspace profile and do not get much back. I want to get the profile metadata and the list of friends.

Arun
Arun India
10/31/2008 4:53:37 AM #

Hi,

     I have entered my twitter address. But I didnt get my friends list in that. How can I do that?

Pingbacks and trackbacks (2)+

Comments are closed

About the author

Mads Kristensen

Mads Kristensen
Program Manager at the Microsoft Web Platform team and founder of BlogEngine.NET.

More...

Month List

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer’s view in any way.