接受后无法删除Facebook中的申请邀请 [英] Cannot delete application invite in Facebook after acceptance

查看:92
本文介绍了接受后无法删除Facebook中的申请邀请的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我浏览了该网站并查看了Facebook文档,但是在朋友接受之后,我似乎无法删除邀请. 因此,发生的是: 史蒂夫邀请约翰参加一场比赛. 2. John收到邀请,然后单击接受. 3. John被带到游戏中,但邀请消息并未在其Facebook页面中删除.

I've looked through this site and looked at the Facebook docs but I can't seem to delete an invite after a friend accepts. So, what happens is: 1. Steve invites John to a game. 2. John receives that invite and clicks accept. 3. John is taken to the game, but the invite message is not delete in his facebook page.

Facebook文档建议我在发布到https://graph.facebook.com/[request_id]?access_token=xxxx

Facebook docs suggests I add "method=delete" when I post to https://graph.facebook.com/[request_id]?access_token=xxxx

但是这会返回我"{"error":{"type":"OAuthException","message":"(#2) Invalid parameter: Unknown error"}}.我很确定我正在使用最新的access_token.

But that returns me "{"error":{"type":"OAuthException","message":"(#2) Invalid parameter: Unknown error"}}". I'm pretty sure I'm using the most recent access_token.

任何人都可以向我提供示例代码,该代码在用户接受后删除应用程序邀请吗?

Can anyone provide me with sample code which deletes an application invite after a user accepts?

我也尝试了DELETE即DELETE https://graph.facebook.com/[request_id]?access_token=xxxx 而且我得到了同样的错误

I also tried DELETE i.e. DELETE https://graph.facebook.com/[request_id]?access_token=xxxx And I get the same error

谢谢.

推荐答案

https://developers.facebook.com/docs/reference/dialogs/requests/ https://developers.facebook.com/blog/post/464/显示如何执行此操作.

There's brief examples at https://developers.facebook.com/docs/reference/dialogs/requests/ and a longer example on https://developers.facebook.com/blog/post/464/ which show how to do this.

从您对fjsj答案的评论中可以看出,您知道您应该做的事情-在我看来,这绝对可以.

It sounds from your comments on fjsj's answer that you know what you're supposed to be doing - it definitely looks OK to me.

可能是您遇到了某种错误,但我认为在这种情况下,更有可能是由于某种原因发送了用户的访问令牌,或者您访问文件的方式略有错误API-如果有特定的错误消息,您会回来吗?如果有的话,也许可以在这里发布.

It could be that you're encountering a bug of some kind, but I think in this case it's more likely that somehow the access token of the user is being sent or there's a slight error in the way you're accessing the API - If there's a specific error message you're getting back? maybe post that here if there is.

要检查的两件事:

  • 当您向/<request id>发出GET请求时,是否返回了您要删除的请求? (使用应用访问令牌)

  • Is the request you're trying to delete returned when you make a GET request to /<request id>? (using the app access token)

正在使用较新的Requests 2.0对话框发送请求吗?如果您使用的是较早的请求系统,则说明基本相同,但是您在其上访问请求的连接是[当前未记录的] /<USER>/platformrequests端点(与/<USER>/apprequests

Are the requests being sent using the newer Requests 2.0 dialogs? If you're using the older requests system, the instructions are basically the same, but the connection you access the requests at is the [currently undocumented] /<USER>/platformrequests endpoint (as opposed to /<USER>/apprequests

这篇关于接受后无法删除Facebook中的申请邀请的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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