In this post we will discuss how to resolve error "The type or namespace name 'API' could not be found (are you missing a using directive or an assembly reference?)" which usually comes while implementing
How to Use the Facebook Developer Toolkit 2.0 from this URL.
The error usually comes in the below line:
API api = new API();
Here they have given to download the Facebook Developer Toolkit from the CodePlex URL.
If you will download from the CodePlex URL then you will get the error as The type or namespace name 'API' could not be found (are you missing a using directive or an assembly reference?).
Solution:
The solution what I found was to download the attached sample project and then unzip the project and give referene the dlls from the sample application folder.
Here you need to give all the dlls liks:
- facebook.dll
- facebook.web.dll
- Microsoft.Xml.Schema.Linq.dll etc
Go to the down of the article and click on Download Full Sample Code and Unzip this project.
Now the error should not come.
How to Use the Facebook Developer Toolkit 2.0 from this URL.
The error usually comes in the below line:
API api = new API();
Here they have given to download the Facebook Developer Toolkit from the CodePlex URL.
If you will download from the CodePlex URL then you will get the error as The type or namespace name 'API' could not be found (are you missing a using directive or an assembly reference?).
Solution:
The solution what I found was to download the attached sample project and then unzip the project and give referene the dlls from the sample application folder.
Here you need to give all the dlls liks:
- facebook.dll
- facebook.web.dll
- Microsoft.Xml.Schema.Linq.dll etc
Go to the down of the article and click on Download Full Sample Code and Unzip this project.
Now the error should not come.