【发布时间】:2012-06-07 20:27:54
【问题描述】:
我想在 wpf (c#) 中开发基于桌面的应用程序。这也需要登录他们的 Facebook 帐户的选项。所以我已经在 fb 开发者网站上注册了我的应用程序并下载了 C# sdk,并参考了一些堆栈溢出链接。 总是连接失败
//我用过的代码
string APIKey = ConfigurationManager.AppSettings["API_Key"];
string APISecret = ConfigurationManager.AppSettings["API_Secret"];
Facebook.Session.ConnectSession connectsession = new Facebook.Session.ConnectSession(APIKey, APISecret);
if (connectsession.IsConnected())
{
Facebook.Rest.Api api = new Facebook.Rest.Api(connectsession);
var friends = api.Friends.GetLists();
foreach (var friend in friends)
{
System.Console.WriteLine(friend.name);
}
}
一些网站告诉 C# sdk 已弃用。
http://developers.facebook.com/blog/post/624/
Facebook Graph C# SDK Ver 6.0: Unable to create event on App's Page
请帮助我使用 wpf 在基于桌面的应用程序中开始 facebook api 集成。有人要求使用图形 api,但我怀疑这是否会支持 c#。 am struk 开始我的 facebook 整合步骤。
【问题讨论】:
-
为什么不使用最新版本的 C# Facebook SDK (docs.csharpsdk.org) 而不是旧版本?
-
@DMCS :我也在搜索相同的内容。csharpsdk.org 是否有助于在基于桌面的应用程序中使用?因为没有桌面APP的文档。我是 C# 新手,请提供一些入门文档
-
这是他们的文档所在的位置:docs.csharpsdk.org。
标签: c# wpf facebook facebook-graph-api