如何删除应用程序请求
根据文档,当用户接受应用请求时,我必须删除它。然而这有一个问题。
当我接受应用程序请求时,我将被重定向到我的应用程序。但在 url 参数中仅包含 apprequestid。当前用户的userId不可用。 我的应用程序不需要身份验证,因此我无法访问当前用户数据。
当我无法按照 这里:
apprequest的旧方法允许我从requestid中提取userid。这已经不可能了。
According to the documentation I must remove an apprequest when a user has accepted it. There is however a problem with this.
When I accept an apprequest, I will be redirected to my app. But in the url parameters only the apprequestid(s) are included. The userId of the current user is unavailable.
My app doesn't require authentication so I can't access the current users data.
How do I remove the apprequest for this user when I don't have acces to the userdata or accesstoken as described here:
The old method of the apprequest allowed me to extract the userid from the requestid. This is not possible anymore.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须进行身份验证才能“篡改”用户数据 - 包括应用程序邀请。
但是,使用
应用程序访问令牌
,您可以在不验证用户身份的情况下删除帖子(您仍然需要获取他们的UID - 可能来自signed_request
。您可以请阅读此链接了解应用登录以及如何检索正确的访问令牌。you have to have authentication to "tamper" with user data - that includes app invitations.
However with an
App Access Token
you might be able to delete the post without authenticating your user (you'll still have to aquire their UID - possibly from thesigned_request
. You can read at this link about app login and how to retrieve the correct access token.