发送应用程序请求有效,但未发送给用户? [英] send app request works, but not sent to user?

查看:73
本文介绍了发送应用程序请求有效,但未发送给用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从服务器端api(php)发送一个Facebook请求. 我使用此代码:

I'm trying to send a facebook request from the server side api (php). I user this code:

https://graph.facebook.com/" . $f2 . "/apprequests?message=NewMatchpoint&data=invite_data&".$access_token."&method=post

这是我得到的答复:

{"request":"355954047749908","to":["100001821928954"]}

我认为这意味着它可以正常工作,并且发送了应用程序请求,但是接收者什么也没收到... 有人遇到过这种行为吗? 谢谢...

I assume this means it worked, and the app request was sent, but the recipient receives nothing... Did someone ever encounter this behavior? Thanks...

推荐答案

是;这意味着请求已成功发送.您可以通过查询Graph API来验证该请求,如下所示:
"https://graph.facebook.com/$REQUEST_ID.'_'.$FBID". 您必须使用下划线将request_id和用户Facebook ID串联起来.

Yes; That means that the request was sent successfully. You can validate that request by querying the Graph API like so :
"https://graph.facebook.com/$REQUEST_ID.'_'.$FBID". You have to concatenate the request_id and the users Facebook id with an underscore.

请确保(如果您的应用程序处于沙盒模式)在应用程序设置的角色"部分中列出了您要发送请求的用户...

Make sure (if your application is in sandbox mode) that the users you are sending the requests to are listed in the "roles" section of your applications settings...

这篇关于发送应用程序请求有效,但未发送给用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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