Put together another quick sample app, this time for ASP.NET 4.0, instead of MVC.
I’ve also added an example of how to post to a user’s wall, using the Facebook C# SDK

As I mentioned earlier, the facebookconnect class included is just a helper class I used to pull values out of the fbs_[appid] cookie. You can get the access_token out of the cookie directly if you want using something like the following:
string accessToken = HttpContext.Current.Request.Cookies["fbs_" + ConfigurationManager.AppSettings["AppID"]]["\"access_token"];
Assuming you have AppID as an appsetting in your web.config. Also, as usual you should change the app id in the sample project to match whatever your current app is using.

Hi, I m using the same code as yours..now how to get freind’s list & post message to them.
can u share some code…
Genial
still no answer
congrats
after all this was the best solution I could find over the internet 
still have one question: what if I would like to publish a link for a website. How could I do that? or an image
How to show confirm modal before redirecting user to Facebook OAuth Login screen as http://www.qilroy.com
Thanks
Padma
Hi tried this one.
It logins sccussfully but doesn’t post anything to Facebook and always shows “No message sent, unauthenticated facebook user” even the user’s profile pic is shown on the left hand side.
Please help me out ?
Thanks
Hi, I am having an issue. When I press once on button it makes its job(posts on fb) but when I press for the second time it gives me:
An error occurred:The remote server returned an error: (400) Bad Request. Why?
wait for answer at inter.adrian@facebook.com thanks
Find me brother.
many thanks from India!
Varun Maggo
Thanx…….
After too much searching i got nice post which is working fine….