未使用应用程序请求对话框获取通知/请求
我正在尝试使用请求对话框在我的网站上构建应用程序请求。
当我向朋友发送应用程序请求时,通知会出现一会儿&消失了。此外,它也没有在“应用和游戏”和“通知”页面中显示任何新通知。
这里是示例代码:-
FB.init({ 应用程序 ID : '127617823933232', 状态:真实, 饼干:真实, 验证:真实, });
函数 sendRequestToRecipients() {
var user_ids = document.getElementsByName("user_ids")[0].value;
FB.ui({method: 'apprequests',
message: 'EventSeekr Join Request',
to: user_ids,
}, requestCallback);
}
函数 sendRequestViaMultiFriendSelector() {
FB.ui({method: 'apprequests', message: 'EventSeekr 加入请求' }, 请求回调);
}
I am trying to build application request on my website using request dialog box.
When i send app request to friends, notification appears for a moment & goes away. Also it is not showing any new notifications either in "App & games" and "notifications" pages.
Here Sample Code :-
FB.init({
appId : '127617823933232',
status : true,
cookie : true,
oauth: true,
});
function sendRequestToRecipients() {
var user_ids = document.getElementsByName("user_ids")[0].value;
FB.ui({method: 'apprequests',
message: 'EventSeekr Join Request',
to: user_ids,
}, requestCallback);
}
function sendRequestViaMultiFriendSelector() {
FB.ui({method: 'apprequests',
message: 'EventSeekr Join Requestt'
}, requestCallback);
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我根据我的应用程序遇到的一些问题回答了类似的问题,看看它是否有帮助:
根据我的经验和阅读 Facebook 开发人员指南,您似乎必须为 Facebook 应用程序定义一个 Canvas,以便将请求呈现为通知。
我正在尝试解决以下问题:这些通知在 Facebook 网站中显示正常,但在 Facebook Android 客户端的通知弹出窗口中显示不正常。
I answered a similar question based on some issues I was having with my app, see if it helps:
From my experience and from reading the Facebook Developer Guide, it seems like it's mandatory for you to have a Canvas defined for your Facebook app so the requests render as Notifications.
I am trying to solve a problem where these notifications show fine in the Facebook website but not on the Facebook Android client's notification popup.