应用程序无法获取某些用户的用户ID
我有一个在 iframe 中运行的 PHP 应用程序。如果用户访问该选项卡,他将通过 getLoginUrl() 重定向到登录页面,并要求授予访问标准用户数据的权限。然后,该应用程序会获取用户的 ID 并提供 PDF 供下载。这对于大多数用户来说效果很好。但是,对于少数用户,getUser() 不会返回用户 ID。同样,从signed_request中提取它也不起作用,因为base64_decode()不会返回有效数据。对于相关用户来说,问题存在于不同的机器、多种浏览器(Firefox、Chrome、Safari、IE、Opera)和操作系统(Mac OS X、Windows)中。
这种行为似乎是几天前开始的,或者可能只是由某些用户配置文件触发的。有谁知道什么可能会触发它并且有解决方法吗?应用程序设置、用户配置文件设置?
I have a PHP app that runs in an iframe. If a user visits the tab, he is redirected to a login page via getLoginUrl() and asked to grant permisson to access the standard user data. The app then obtains the user's ID and offers a PDF for download. This works well for most users. However, for a few users, getUser() does not return the user id. Likewise, extracting it from the signed_request does not work as base64_decode() does not return valid data. For the users in question, the problem exists on different machines, in several browsers (Firefox, Chrome, Safari, IE, Opera) and operating systems (Mac OS X, Windows).
It seems that this behavior started a few days ago or maybe it is only triggered by some user profiles. Does anybody have an idea what could trigger it and is there a work-around? Apps settings, user profile settings?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论