首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >C# XMPP FACEBOOK平台SASL实现

C# XMPP FACEBOOK平台SASL实现
EN

Stack Overflow用户
提问于 2011-03-14 11:30:13
回答 2查看 1.4K关注 0票数 4

我正在尝试在C#中集成一个带有Facebook Chat的应用程序。Facebook建议使用X-FACEBOOK-PLATFORM SASL机制。文档描述了需要以下参数的X-FACEBOOK-PLATFORM:

代码语言:javascript
复制
string method // Should be the same as the method specified by the server.
string api_key // The application key associated with the calling application.
string session_key // The session key of the logged in user.
float call_id // The request's sequence number.
string sig // An MD5 hash of the current request and your secret key.
string v // This must be set to 1.0 to use this version of the API.
string format // Optional - Ignored.
string cnonce // Optional - Client-selected nonce. Ignored.
string nonce // Should be the same as the nonce specified by the server.

this other Stackoverflow Question我能够理解session_key和sig的值来自哪里,但我很难找到call_id的值是在哪里定义的。同样在上面提到的链接中,答案的sig值为:

代码语言:javascript
复制
string sig = "api_key=" + apiKey
                        + "call_id=" + callId
                        + "method=" + method
                        + "nonce=" + nonce
                        + "session_key=" + sessionKey
                        + "v=" + version
                        + appSecret;

有没有什么东西可以把版本和appSecret分开呢?Facebook的文档没有提到任何关于包含appSecret的内容,有必要添加吗?

感谢您的帮助:)

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2011-03-15 21:51:36

在你链接的帖子中,有一个关于callId (第一行)的定义,至于appSecret,请尝试使用和不使用。如果两者都有效,这就是你的答案!

票数 1
EN

Stack Overflow用户

发布于 2011-10-19 00:14:03

请参阅Facebook Chat in C#

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5294433

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档