C# 会话密钥Facebookservice status.set问题
我的问题很简单。我只想从我的桌面应用程序发布状态更新。该应用程序包含一个文本框和一个按钮。。。单击按钮,我想根据用户访问令牌将textbox.text设置为facebook。 我找到了一个教程,上面说您需要使用的是:C# 会话密钥Facebookservice status.set问题,c#,facebook,sdk,C#,Facebook,Sdk,我的问题很简单。我只想从我的桌面应用程序发布状态更新。该应用程序包含一个文本框和一个按钮。。。单击按钮,我想根据用户访问令牌将textbox.text设置为facebook。 我找到了一个教程,上面说您需要使用的是: FacebookService1.ApplicationKey = apiKey FacebookService1.Secret = appsecret '<-- but secret is not available 您的特定应用程序的应用程序机密可从获取 会话密钥将在
FacebookService1.ApplicationKey = apiKey
FacebookService1.Secret = appsecret '<-- but secret is not available
您的特定应用程序的应用程序机密可从获取 会话密钥将在每次登录时更改。我不知道C#中的具体代码,但在javascript中,您可以从FB.getSession()获得它。最通用的方法是读取cookie 顺便说一句:还有一些其他的问题,所以我刚刚发现要处理同样的问题。例如,
API api = new API();
api.ApplicationKey = Utility.ApiKey();
api.SessionKey = Utility.SessionKey();
api.Secret = Utility.SecretKey();
api.uid = Utility.GetUserID();
这是我从
你也可以阅读好的,我已经知道了。会话密钥是什么?它与访问令牌相同吗?还是几个的组合?
App ID
111111111111111111
API Key
2a2a2a2a2a2a2a2a2a2a2a
App Secret
3b3b3b3b3b3b3b3b3b3b3b3b3b3b
API api = new API();
api.ApplicationKey = Utility.ApiKey();
api.SessionKey = Utility.SessionKey();
api.Secret = Utility.SecretKey();
api.uid = Utility.GetUserID();