ASP.NET
From Facebook Developer Wiki
Contents |
[edit] Tutorials
- How to write an facebook application using ASP.NET - the BEST tutorial ever written on such topic
[edit] Libraries
- .NET Facebook API Client (alpha release) - Developed by SocialCash, Demo App
- .NET: Facebook Developer Toolkit (note the showcase) - For issues and discussions about the Toolkit see the project on Codeplex. Comments about the the Dev Kit from FB users
- Facebook Developer Toolkit Addon for ASP.NET MVC
- Jay Lagorio also created a VB.NET client library. This is linked from the main developer page.
- VS.NET 2008 Starter Kit for creating Facebook applications using Facebook Developer Toolkit v2.1
- Facebook.NET: Introduction and CodePlex Project - an open source .net Facebook application framework optimized for the ASP.NET programming model - use with either C# or VB.NET.
- fbasync: An Asynchronous Facebook API for .NET designed to scale. Read the introduction blog entry.
[edit] Samples
cSharp InLine Publisher - sample May 2009 using FDT 2.0
[edit] Solution to an IE gotcha when developing Facebook App in an IFRAME
This was a very frustrating problem for us in our app Jobs (http://apps.facebook.com/getthejob).
The problem was that in IE, if a parent frame has a different domain than the child page, the session data (stored in the Session object) is not preserved as a security precaution.
Anyway, if you have this problem, the answer is available on Microsoft's website.
Simply put, in your ASP.NET page codebehind, add the following code:
[edit] C#
protected override void OnPreRender(EventArgs e)
{
Response.AppendHeader("P3P", "CP=\"CAO PSA OUR\"");
base.OnPreRender(e);
}
[edit] VB
Protected Overrides Sub OnPreRender(ByVal e As EventArgs)
Response.AppendHeader("P3P", "CP=""CAO PSA OUR""")
MyBase.OnPreRender(e)
End Sub
This will add the right headers to every page.
