Facebook连接使用Facebook的ASP.NET工具包 [英] Facebook Connect with ASP.NET using Facebook Toolkit

查看:90
本文介绍了Facebook连接使用Facebook的ASP.NET工具包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里做了以下步骤 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();

总是与这个错误出现:

always comes up with this error:

编译器错误信息: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的文章和pre-先决条件完成。但不知何故,我坚持这个问题。

I am actually almost done with the article in DEVTACULAR and its pre-requisites. But somehow I am stuck with this problem.

需要帮助严重。感谢:)

Need help badly. Thanks :)

推荐答案

您已经通过将以下在你的类的顶部导入Facebook.Session:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆