2011-03-14 4 views
4

C#에서 Facebook Chat으로 애플리케이션을 통합하려고합니다. Facebook은 X-FACEBOOK-PLATFORM SASL 메커니즘의 사용을 권장합니다. 문서는 다음과 같은 매개 변수를 필요로하는 X-페이스 북 플랫폼을 설명 : 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가 정의됩니다. 버전과 appSecret을 분리 아무것도 할

string sig = "api_key=" + apiKey 
         + "call_id=" + callId 
         + "method=" + method 
         + "nonce=" + nonce 
         + "session_key=" + sessionKey 
         + "v=" + version 
         + appSecret; 

이 가정 해 봅시다된다 또한 위에서 언급 한 링크, 대답은 존재와 sig 값을 가지고? Facebook 문서는 appSecret을 포함하는 것에 대해 아무 것도 말하지 않고 추가해야합니까? 당신이 링크 된 게시물에 어떤 도움 :)

답변

1

에 대한

덕분에, appSecret에 관해서는 callId (맨 윗줄)에 대한 정의가 있었다, 함께 및없이 시도합니다. 둘 다 작동하면 답이 있습니다!