dongzhuifeng1843 2018-02-14 15:14
浏览 76
已采纳

Facebook登录重定向问题与新的Facebook政策

According to new facebook policy. You cannot redirect to URLs that are not stated in **Valid OAth Redirect URI** from March onwards.

In March, we're making a security update to your app settings that will invalidate calls from URIs not listed in the Valid OAuth redirect URIs field below.This update comes in response to malicious activity we saw on our platform, and we want to protect your app or website by requiring a new strict mode for redirect URIs. Learn More

Here are 5 out of the 8 of your URIs that will be invalidated by this change.

But my problem is that my uris are dynamic. It has get parameters after it.

http://www.website.com/fb/login.php?redirect=http%3A%2F%2Fwww.website.com%2Fapps%2F456

http://www.website.com/fb/login.php?redirect=http%3A%2F%2Fwww.website.com%2Fapps%2F123

http://www.website.com/fb/login.php // This alone does not seem to work
  • 写回答

1条回答 默认 最新

  • drozwmi5440 2018-02-14 19:56
    关注

    I -too- had the same problem. I solved it by adding my OAuth redirect URI as a argument to the getAccessToken function call:

    $redirectLoginHelper->getAccessToken("https://www.example.com/myfacebookcallback")
    

    If no argument is sent into that function the SDK generates the redirect URI by itself which should work but in my case it didn't.

    Hope this helps someone.

    source: https://stackoverflow.com/a/39051948/4872547

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?