简体   繁体   English

找不到类型或名称空间名称“ FacebookSessionClient”(您是否缺少using指令或程序集引用?)

[英]The type or namespace name 'FacebookSessionClient' could not be found (are you missing a using directive or an assembly reference?)

I am following http://facebooksdk.net/docs/phone/tutorial/ for logging into my Windows Phone 8 app through Facebook. 我正在关注http://facebooksdk.net/docs/phone/tutorial/通过Facebook登录到Windows Phone 8应用程序。 Upon going through the article when I try to run the application, it gives me error- 在尝试运行应用程序时浏览了这篇文章后,它给了我错误-

The type or namespace name 'FacebookSessionClient' could not be found (are you missing a using directive or an assembly reference?)` 找不到类型或名称空间名称“ FacebookSessionClient”(您是否缺少using指令或程序集引用?)

and, 和,

The type or namespace name 'FacebookSession' could not be found (are you missing a using directive or an assembly reference?) 找不到类型或名称空间名称“ FacebookSession”(您是否缺少using指令或程序集引用?)

I am sure I have added all references and namespaces. 我确定我已经添加了所有引用和名称空间。 So what I am doing wrong? 所以我做错了什么?

I'm not really familiar with this, but have you imported everything correctly? 我对此并不十分熟悉,但是您是否正确导入了所有内容? See also https://stackoverflow.com/a/3964462/561485 另请参阅https://stackoverflow.com/a/3964462/561485

For in the top of your class: 对于您班上的佼佼者:

using Facebook.Session;

I think this component has been removed from the lastest version. 我认为该组件已从最新版本中删除。 The way about login is replaced by 登录方式被替换为

  1. "Session.ActiveSession.LoginWithBehavior("email,public_profile,user_friends", FacebookLoginBehavior.);" “ Session.ActiveSession.LoginWithBehavior(” email,public_profile,user_friends“,FacebookLoginBehavior。);”
  2. public enum FacebookLoginBehavior { LoginBehaviorApplicationOnly, LoginBehaviorMobileInternetExplorerOnly, LoginBehaviorWebViewOnly, } 公共枚举FacebookLoginBehavior {LoginBehaviorApplicationOnly,LoginBehaviorMobileInternetExplorerOnly,LoginBehaviorWebViewOnly,}

But I still try how to login by using Facebook Beta App. 但是我仍然尝试使用Facebook Beta App登录。 If you have any ideas, I think we can discuss about this issue. 如果您有任何想法,我想我们可以讨论这个问题。

This happens because of the version of the Facebook SDK and the Facebook.Client. 由于Facebook SDK和Facebook.Client的版本而发生这种情况。

Above problem can be resolved by installing the Facebook SDK version 6.3.2 and the Facebook.Client version 0.40-alpha 通过安装Facebook SDK版本6.3.2和Facebook.Client版本0.40-alpha可以解决以上问题

You can download and install using the Package Manager Console and the command can be found in here and here too . 您可以使用Package Manager控制台下载和安装,该命令也可以在此处此处找到。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到类型或名称空间名称(缺少使用指令或程序集引用吗?) - Type or namespace name could not be found (missing using directive or assembly reference?) 找不到类型或名称空间名称“ My_Interface_Name”(您是否缺少using指令或程序集引用?) - The type or namespace name 'My_Interface_Name' could not be found (are you missing a using directive or an assembly reference?) 找不到类型或命名空间名称'SignInManager'(您是否缺少using指令或程序集引用?) - The type or namespace name 'SignInManager' could not be found (are you missing a using directive or an assembly reference?) 错误 CS0246:找不到类型或命名空间名称“IWebHostEnvironment”(您是否缺少 using 指令或程序集引用?) - error CS0246: The type or namespace name 'IWebHostEnvironment' could not be found (are you missing a using directive or an assembly reference?) 找不到类型或名称空间名称“ PrintDocument”(是否缺少using指令或程序集引用?) - The type or namespace name 'PrintDocument' could not be found (are you missing a using directive or an assembly reference?) 找不到类型或命名空间名称“OleDbConnection”(您是否缺少 using 指令或程序集引用?) - The type or namespace name 'OleDbConnection' could not be found (are you missing a using directive or an assembly reference?) 为什么会出现这个错误? “找不到类型或名称空间名称'c'(您是否缺少using指令或程序集引用?)” - Why this error ? “The type or namespace name 'c' could not be found (are you missing a using directive or an assembly reference?)” 找不到类型或命名空间名称'ContractClassFor'(您是否缺少using指令或程序集引用?) - The type or namespace name 'ContractClassFor' could not be found (are you missing a using directive or an assembly reference?) 错误1找不到类型或名称空间名称'FPSTimer'(您是否缺少using指令或程序集引用?) - Error 1 The type or namespace name 'FPSTimer' could not be found (are you missing a using directive or an assembly reference?) 找不到类型或名称空间名称“ HttpConfiguration”(是否缺少using指令或程序集引用? - The type or namespace name 'HttpConfiguration' could not be found (are you missing a using directive or an assembly reference?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM