Facebook的API类不存在了 [英] Facebook API class doesn't exist anymore
问题描述
我试图按照本指南使用Facebook在我的网站:
<一个href=\"http://www.deviant$c$crs.com/articles/aspnet-membership-and-role-provider-facebook-connect-part-2\" rel=\"nofollow\">http://www.deviant$c$crs.com/articles/aspnet-membership-and-role-provider-facebook-connect-part-2
但是,当我尝试使用 API API =新的API();
无法找到类:
类型或命名空间名称'API'找不到(是否缺少using指令或程序集引用?)
我错过了什么集会,我说:
Facebook.Web
Facebook.Web.Mvc
有关有兴趣的人,我发现了framwork已经改变。现在,你需要这样用来初始化它:
公共ConnectSession _connectSession _connectSession =新ConnectSession(APPLICATION_KEY,SECRET_KEY);
公共API _facebookAPI =新的API(_connectSession);
来源: http://facebook.claritycon.com/help/ - > Asp.net开发 - >连接
I am trying to follow this guide to use Facebook on my site:
http://www.deviantcoders.com/articles/aspnet-membership-and-role-provider-facebook-connect-part-2
But when I try to use API api = new API();
it can't find the class:
The type or namespace name 'API' could not be found (are you missing a using directive or an assembly reference?)
What assembly am I missing, I have added:
Facebook.Web
Facebook.Web.Mvc
For anyone interested, I found out that the framwork has changed. Now you need to initilize it this way:
public ConnectSession _connectSession _connectSession = new ConnectSession(APPLICATION_KEY, SECRET_KEY);
public Api _facebookAPI = new Api(_connectSession);
Source: http://facebook.claritycon.com/help/ -> Asp.net Development -> Connect
这篇关于Facebook的API类不存在了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!