使用加密的访问令牌格式登录Facebook XMPP [英] Logging into Facebook XMPP with encrypted access token format

查看:110
本文介绍了使用加密的访问令牌格式登录Facebook XMPP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的accessToken有问题!

Problem with my accessToken!!

accessToken一直都很好.

accessToken is all right all the time.

标准格式:AAA | BBB | CCC

It's standard format: AAA|BBB|CCC

我可以从给定的accessToken(AAA | BBB | CCC)中获取可用的当前用户的uid和会话机密

I can get available current user's uid and session secret from a given accessToken( AAA|BBB|CCC)

但是今天fb服务器意外地给了我一个奇怪的accessToken.这对xmpplogin没用.

BUT today fb server give me a strange accessToken unexpectedly.It's not useful for xmpplogin.

例如AAACmERnbMSwBAB3XnOt4hnR71agtbo3CE8w2Xd7jD7QEURSiiOFV1Eg85tHsaHvVNobiUFppqzQcaXKjWOVSZCIFKvVsEJ4llZBfNI6AZDZD

eg. AAACmERnbMSwBAB3XnOt4hnR71agtbo3CE8w2Xd7jD7QEURSiiOFV1Eg85tHsaHvVNobiUFppqzQcaXKjWOVSZCIFKvVsEJ4llZBfNI6AZDZD

您能给我一个线索吗?我很疯狂地整天都在寻找答案.

could you give me a clue?I'm crazy to find answers whole day.

推荐答案

按照 https://developers.facebook.com/blog/post/572/访问令牌格式最近更改为加密格式.使用此加密令牌(包括XMPP),所有API都可以正常工作,但需要对XMPP代码进行较小的更改.

As per https://developers.facebook.com/blog/post/572/ the access token format changed recently to an encrypted format. All the APIs should work fine using this encrypted token including XMPP but it requires a minor code change to your XMPP code.

9月10日.

session_keysig参数替换为access_token参数,该参数应该是具有xmpp_login权限的用户access_token-还请注意,它需要通过SSL传递(我相信,当您只传递了会话密钥和信号)

Replace the session_key and sig parameters with the access_token parameter which should be the user access_token which has the xmpp_login permission - also note that it needs to be passed over SSL (which I believe was optional when you were only passing only the session key and sig)

如果您在通过加密访问令牌后无法使用XMPP登录,请在 Facebook的错误中提交错误.跟踪器,但是请确保您已根据上面的说明和聊天文档.

If you can't get XMPP login working when you pass the encrypted access token, please file a bug in Facebook's bug tracker, but make sure you have the parameters changed per the note above and the chat docs.

这篇关于使用加密的访问令牌格式登录Facebook XMPP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆