未使用应用程序请求对话框获取通知/请求

发布于 2024-12-23 18:30:43 字数 667 浏览 5 评论 0原文

我正在尝试使用请求对话框在我的网站上构建应用程序请求。

当我向朋友发送应用程序请求时,通知会出现一会儿&消失了。此外,它也没有在“应用和游戏”和“通知”页面中显示任何新通知。

这里是示例代码:-

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

安人多梦 2024-12-30 18:30:43

我根据我的应用程序遇到的一些问题回答了类似的问题,看看它是否有帮助:

根据我的经验和阅读 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文