Click here to Skip to main content
15,901,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all ,

I downloaded the facebook toolkit from codeplex,and i added the windows forms dll to my toolbox in visual studio but when iam adding a facebook control like friend list to my windows form it is giving me this error :

MSIL
Error   1   The type 'Facebook.Schema.user' is defined in an assembly that is not referenced. You must add a reference to assembly 'Facebook, Version=3.0.1.0, Culture=neutral, PublicKeyToken=null'.   

So please can anyone help me ?
Posted

1 solution

Then add the reference!

In VS, Open your project, and in the Solution Explorer right click your Project name, and select "Add Reference..."
In the dialog that appears, find the "FaceBook" assembly, highlight it, and press "OK".

It should now work!
 
Share this answer
 
Comments
mhamad zarif 5-Jun-11 5:09am    
Thanks for the help my friend i did it and it is ok.But iam having a new problem which is that ia m trying to follow a tutorial on msdn and they are using the facebook service and they are writing : facebookService1.Secret. But my problem is that secret is not found and it is also saying that i must add a reference so what reference should i also add ?
OriginalGriff 5-Jun-11 5:16am    
Which tutorial page are you talking about?
Manfred Rudolf Bihy 5-Jun-11 5:20am    
Have you tried this: https://facebooktoolkit.svn.codeplex.com/svn/MAIN/doc/WinformDevelopment%20-%20Copy.html ?
mhamad zarif 5-Jun-11 5:20am    
this one

http://msdn.microsoft.com/en-us/library/bb932386.aspx
OriginalGriff 5-Jun-11 5:30am    
You did notice that that tutorial links you to a discontinued SDK?
"Please note: After several months of analysis and recent discussions with Microsoft we have decided to discontinue support of this library. The library grew to the point that it is hard to maintain and was designed when Facebook's api was different"
Are you using the later version, or the version that tutorial refers to? I am not sure which is which here!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900