将 Facebook Connect 与 SharePoint 2010 结合使用时出现问题
我们在 SharePoint 门户中使用 Facebook Connect Graph API 时遇到问题,从 cookie 获取 Access_token 时遇到问题。 之前,它是从 cookie 中获取的,并且没有像“AAAD4Ta4Jx2MBANUYTxUZCAj6vgwON1SmgUZCpyYZAFDPj9eN679kaTuG7”那样进行编码,但一周前我们得到的代码带有这种外部格式,并且无法获取用户的信息。
现在,我们改变了获取 access_token 的方式,将加密代码发送到 https://graph.facebook。 com/oauth/access_token?...但我们总是收到错误的请求。
请您指出我们。这个 API 最近发生了什么变化,为什么它以前可以工作,但现在不行。
We are getting troubles using Facebook Connect Graph API within a SharePoint Portal, We are facning problems while getting Access_token from cookie.
before, it was gotten from cookie and It did not come encripted like 'AAAD4Ta4Jx2MBANUYTxUZCAj6vgwON1SmgUZCpyYZAFDPj9eN679kaTuG7' but one week ago the code we get comes with that extrange format and it is not possible to get info of the user.
now, we have changed the way that we get access_token bye sending the encripted code to https://graph.facebook.com/oauth/access_token?... but we always get a bad request.
Could you please indicate us. what have changed in this API recently, why did it use to work before and not now.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Facebook 现在正在发送加密的访问令牌,作为切换到 SSL 和 Oauth2.0 的一部分。他们的 Facebook 路线图中提到了这一点。它们的工作原理与普通代币一样。使用该令牌调用 /me 来获取用户信息,因为您无法再从令牌中解析用户 ID。
Facebook is now sending encrypted access tokens as part of their switch to SSL and Oauth2.0. This is mentioned on their Facebook Roadmap. They work just like normal tokens. Use that token to call /me to get the users info, as you can't parse the user id from the token anymore.