C#XMPP X-FACEBOOK-PLATFORM SASL实现
我正在尝试在C#中集成一个应用程序。Facebook建议使用X-Facebook-PLATFORM SASL机制。本文档描述了需要以下参数的X-FACEBOOK-PLATFORM:C#XMPP X-FACEBOOK-PLATFORM SASL实现,c#,facebook,xmpp,C#,Facebook,Xmpp,我正在尝试在C#中集成一个应用程序。Facebook建议使用X-Facebook-PLATFORM SASL机制。本文档描述了需要以下参数的X-FACEBOOK-PLATFORM: string method // Should be the same as the method specified by the server. string api_key // The application key associated with the calling application. strin
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.
从中,我能够理解session_key和sig的值来自何处,但我很难找到call_id的值是在何处定义的。同样在上述链接中,答案的sig
值为:
string sig = "api_key=" + apiKey
+ "call_id=" + callId
+ "method=" + method
+ "nonce=" + nonce
+ "session_key=" + sessionKey
+ "v=" + version
+ appSecret;
是否有任何东西将版本和appSecret分开?Facebook文档中没有提到包含appSecret,有必要添加吗
感谢您的帮助:)在您链接的帖子中,有一个callId(顶行)的定义。至于appSecret,请尝试使用和不使用。如果两者都有效,那就是你的答案 见