fb_exchange_token的PHP唯一的工作,一旦用户删除应用程序 [英] fb_exchange_token for PHP only working once user removes app

查看:249
本文介绍了fb_exchange_token的PHP唯一的工作,一旦用户删除应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我建立一个Facebook应用程序,我需要更长的时间比默认的1 - 2小时

For a Facebook app that I am building, I require longer time than the default 1 - 2 hours.

我不想用offline_access,因为它把人们吓跑,从签约到应用程序,现在是很preciated。

I don't want to use "offline_access" as it puts people off from signing up to the app and is now depreciated.

在它谈论fb_exchange_token,这将访问令牌到期日延长至1个月的开发路线图。

In the developer road map it talks about "fb_exchange_token" which will extend the access token expiry date to 1 month.

的流程是:


  • 登录用户

  • Login User

呼... / OAuth的/ ...的access_token&放大器; grant_type = fb_exchange_token&安培; fb_exchange_token = ...

Call .../oauth/access_token?...&grant_type=fb_exchange_token&fb_exchange_token=...

这工作正常,所有的新用户,以及谁从他们的Facebook账户中删除应用程序,并重新添加它,但对于我们现有的客户群,这是行不通的用户。

This works fine for all the new users, and for users who delete the app from their Facebook account and re-add it, but for our existing customer base, it doesn't work.

我已经试过各种包括添加其他权限的登录脚本来强制进行身份验证窗口,但没有运气。

I have tried all sorts including adding other permissions to the login script to force the authenticate window, but no luck.

如文档中描述的我加入了Facebook应用程序的正确前进/迁移设置。似乎没有要上这么多的帮助,除了dev的博客。

I have added the correct advanced/migration setting for the Facebook app as described in the documentation. There doesn't appear to be much help on this, apart from the dev blog.

任何帮助将大大AP preciated。

Any help will be greatly appreciated.

FYI:我使用的是最先进的最新PHP SDK和code,以获得新的访问令牌只是指向以下网址的标准要求卷曲:

FYI: I'm using the most up-to-date PHP SDK and the code to get the new access token is just the standard cURL request pointing to the following url:

<一个href=\"https://graph.facebook.com/oauth/access_token?client_id=\">https://graph.facebook.com/oauth/access_token?client_id={APPID}&client_secret={APPSECRET}&grant_type=fb_exchange_token&fb_exchange_token={ACCESSTOKEN}

https://graph.facebook.com/oauth/access_token?client_id={APPID}&client_secret={APPSECRET}&grant_type=fb_exchange_token&fb_exchange_token={ACCESSTOKEN}

再次感谢

推荐答案

我有同样的问题。我注意到一件事:网友认为previously有offline_access许可也能获得60天的标记,以及新的授权用户

I am having the same issue. One other thing I've noticed: users that previously had the offline_access permission are also able to get the 60 day tokens, as well as newly authorized users.

我开了一个错误,试图摆脱FB的响应: https://developers.facebook.com /错误/ 241373692605971

I opened a bug to try to get a response from FB: https://developers.facebook.com/bugs/241373692605971

这篇关于fb_exchange_token的PHP唯一的工作,一旦用户删除应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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