Facebook 好友请求
我使用默认的 facebook 对话框来请求请求,
<script type="text/javascript">
function sendRequestToRandomFriends() {
FB.ui({method: 'apprequests',
message: '<?= na ('request text') ?>',
to: '<? $to = '';
foreach ($Rfriends as $c) {
if (isset($c['uid'])) $to .= $c['uid'] . ',';
}
if (!empty($to)) echo substr($to, 0, -1); ?>'
}, requestCallback);
}
但我看到许多自行创建的对话框窗口,要求发送请求。
当用户按下按钮时他们如何发送请求?
I use default facebook dialog to ask for request
<script type="text/javascript">
function sendRequestToRandomFriends() {
FB.ui({method: 'apprequests',
message: '<?= na ('request text') ?>',
to: '<? $to = '';
foreach ($Rfriends as $c) {
if (isset($c['uid'])) $to .= $c['uid'] . ',';
}
if (!empty($to)) echo substr($to, 0, -1); ?>'
}, requestCallback);
}
But I saw many self created dialog windows , which ask to send requests.
How they sends requests when user press the button ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了你的答案。它深深地埋藏在文档中。要在没有 FB.ui 对话框的情况下发送用户请求,您可以使用 grpah api 的 create用户请求发送。
创建
I found your answer. It is buried deep down in the documentation. To send a user request without the FB.ui dialog you can use the grpah api's create user request to send.
Create