Tutorial Help

Aug 19, 2008 at 7:21 PM
Edited Aug 19, 2008 at 7:24 PM

Hi, im trying to make a basic app to make sure that the setup i have / framework is working and am having a lot of troiuble trying to get the tutorial app to work.

First i had to spend a long time figuring out that the app tutorial has a using "Facebook" when it should have been "facebook" and apparently the specific capitalization makes a difference.
Also none of the other previous command in the tutorial app seem to be now available on the new release.

Can anyone help me just get a basic application working?
Thank you very much!

here's what im tyring to get working and also does anyone have any suggestions whether to use the .net frameowrk from nikhil kothari (facebook.net) or this one ?

I would greattly Appreciate any help!

Code below: 

 

using

 

System;

 

using

 

System.Configuration;

 

using

 

System.Data;

 

using

 

System.Linq; 

 

using

 

System.Web; 

 

using

 

System.Web.Security; 

 

using

 

System.Web.UI; 

 

using

 

System.Web.UI.HtmlControls; 

 

using

 

System.Web.UI.WebControls; 

 

using

 

System.Web.UI.WebControls.WebParts; 

 

using

 

System.Xml.Linq; 

 

using

 

facebook; 

 

using

 

facebook.web; 

 

using

 

facebook*;
 

 

public

 

partial class _Default : facebook.web.CanvasFBMLBasePage

 

 

 

 

 

{

 

 

private const string FACEBOOK_API_KEY = "YOURAPIKEYHERE";

 

 

private const string FACEBOOK_SECRET = "YOURSECRETHERE";

 

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

base.ApiKey = FACEBOOK_API_KEY;

 

 

base.Secret = FACEBOOK_SECRET;

 

 

base.Page_Load(sender, e);

 

 

if (!IsPostBack)

 

{

 

// Use the FacebookService Component to populate Friends

 

 

 

 

 

facebook.Entity.User u =

this.fbFBService.GetUserInfo();

 

Collection<Facebook.Entity.User> f =

this.FBService.GetFriends();

 

}

}

}

Sep 4, 2008 at 9:27 PM
I would recommend stating here: http://www.stevetrefethen.com/wiki/Facebook%20application%20development%20in%20ASP.NET.ashx

I was able to get it work with fairly little effort and get started.  If anyone finds any better starter kits, please share.  Thanks!
Sep 5, 2008 at 4:47 AM
Edited Sep 5, 2008 at 5:18 AM
Ok, I gave up on trying to edit it in here and stuck it on my WIKI here:

ebswift wiki

Basically it's a base framework for getting the new Facebook Developer Toolkit working, I hope that helps.