[英]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 登录方式被替换为
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.