How to hide app secret key when usig strophe+ bosh to connect to facebook chat?

10 views
Skip to first unread message

stella

unread,
Sep 8, 2011, 9:42:47 AM9/8/11
to Punjab
Hi,

I have managed a web app using strophe + bosh to connect to
facebook chat server. The library is very easy to use. Thx for a ice
piece of work!

I have one question, that is, how to hide app scret key?

In the original Strophe.Connection.prototype.facebookConnect =
function (jid, callback, wait, hold, apiKey, secretKey, sessionKey)
fuction, secretKey is a requred iput parameter.

I see in the facebook.html example (distributed together with
strophe), there is a modified
Strophe.Connection.prototype._sasl_challenge_fb fuction, which makes
it possible to hide the app secret key.

However, it did not work for me.

Could you kindly explain the idea of how to hide the app secret
key?

/Stella
Reply all
Reply to author
Forward
0 new messages