The type or namespace name 'Facebook' could not be found

Nov 6, 2010 at 12:30 AM
Edited Nov 6, 2010 at 12:51 AM

Hi all!

I'm not a beginner but i'm working my way up by myself (for hobby). and i dont know why it happen but i got a strange error, that the namespace is missing although i add the reference.

what is did was:

using existing project at vs 2010, .net 4, c# wpf desktop app.

1. add reference of facebook.dll, Microsoft.Facebook.dll,.

2. add a simple rows to a button event:

 Facebook.Session.DesktopSession session = new Facebook.Session.DesktopSession("xxxx", true); 


var service = Facebook.BindingHelper.BindingManager.CreateInstance(session);           

when i use code editor, i can see all of facebook references. but when i compile i always get the error: error CS0246: The type or namespace name 'Facebook' could not be found (are you missing a using directive or an assembly reference?)


error CS0103: The name 'Facebook' does not exist in the current context


what i'm missing here?


and thanks you all very much for helping and developed this great toolkit!