Facebook使用Facebook工具包与ASP.NET连接 [英] Facebook Connect with ASP.NET using Facebook Toolkit
问题描述
我已经在这里完成了以下步骤: http://wiki.developers.facebook。 com / index.php / How_Connect_Authentication_Works ,但我被困在第8位。我添加了DLL,但由于某种原因,这一行:
I have done the following steps here http://wiki.developers.facebook.com/index.php/How_Connect_Authentication_Works but I'm stuck at number 8. I've added the DLL's but for some reason this line:
API api = new API();
总是出现这个错误:
编译器错误消息:CS0246:
类型或命名空间名称API不能
被找到(您是否缺少使用
指令或程序集引用? )
Compiler Error Message: CS0246: The type or namespace name 'API' could not be found (are you missing a using directive or an assembly reference?)
我实际上几乎完成了DEVTACULAR中的文章及其先决条件。但不知何故,我遇到这个问题。
I am actually almost done with the article in DEVTACULAR and its pre-requisites. But somehow I am stuck with this problem.
需要帮助。谢谢:)
推荐答案
你必须通过将以下内容放在你的班级的顶部:
You have to import Facebook.Session by putting the following at the top of your class:
using Facebook.Session;
您也可以使用完全限定名称,如:
You could also just use the fully qualified name like:
Facebook.Session.Api api = new Facebook.Session.API();
这篇关于Facebook使用Facebook工具包与ASP.NET连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!