2011-03-14 6 views
4

私はアプリケーションをFacebook ChatとC#で統合しようとしています。 Facebookは、X-FACEBOOK-PLATFORM SASLメカニズムの使用を推奨しています。マニュアルは、次のパラメータを必要とするX-FACEBOOK-PLATFORMについて説明します。this other Stackoverflow QuestionからC#XMPP X-FACEBOOK-PLATFORM SASL実装

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の追加について何も言及していません。追加する必要がありますか?リンクされた記事で任意のヘルプ:)

答えて

1

ため

おかげで、appSecretについてはcallId(トップライン)の定義があった、としてなくて、それを試してみてください。両方がうまくいくなら、あなたの答えがあります!

関連する問題