0

I am trying to connect to FB Chat using the X-FACEBOOK-PLATFORM authentication technique. I am currently using the Strophe library.

Everything else is done and working, I saved this bit for last (I knew it was going to be hard).

However Strophe only provides support for MD5 which I can't use as its a JS client. So instead I need to find a way to do a special Strophe connection.

I have seen the Strophe plugin at;

https://github.com/rubenjgarciab/turedsocial/blob/dc12d71339ad509c946b5de727f2d77999153b02/strophe-plugins/src/facebook.js

However this doesn't work since OAuth 2.0 enforcement. I'm confident to do the connection manually if I absolutely have to however I'm hoping somebody has already solved this problem.

少なくとも、接続を手動で行う方法を誰かに教えてもらえますか (.connect(); をバイパスして自分で行う Strophe 関数のように)。

ありがとうアンドリュー

4

2 に答える 2

1

この strophe facebook プラグインの行 104 ~ 110 を変更するには、「Facebook プラットフォームでの認証」の次の手順に従ってください。

https://developers.facebook.com/docs/chat/

主に、IIt にはセッション キーの削除とアクセス トークン パラメータの追加が含まれます。

于 2011-10-27T09:50:14.337 に答える
0

アンドリュー、

これが適切な変更を加えた私のフォークです。幸運を!

https://github.com/javierfi​​gueroa/turedsocial

于 2012-01-23T19:46:10.967 に答える