简体   繁体   中英

Missing assembely reference error after adding Facebook.dll using c# asp.net

I am working on login with Facebook in my app using c# asp.net.I added facebook.dll inside Reference section but it is still showing the following error.

Error:

The type of namespace name FacebookAPI does not exist in namespace Facebook.

Errors are coming the below line of my code.

Facebook.FacebookAPI api = new Facebook.FacebookAPI(GetAccessToken());

Please let me to know Is this version mismatch or what ? Please help me.

To be honest I don't see this FacebookAPI class in SDK reference. Maybe you are looking for some other class:

FacebookClient client = new Facebook.FacebookClient(GetAccessToken());

Are you sure you are referring to the latest SDK documentation?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM