代表我的应用程序(而不是用户)在用户墙上发帖

发布于 2024-12-15 22:43:48 字数 649 浏览 3 评论 0原文

几年来,我设法在不发布自己的问题的情况下解决问题,而是通过阅读其他问题来解决问题。然而,在阅读了 200 多篇无用的帖子后,我决定是时候寻求一些帮助了。

我正在构建一个 Facebook 应用程序,而我不想做的事情解释起来非常简单。我不想实时通知某个用户某些事件。例如,“您想观看的电视节目一小时后开始”。不幸的是,Facebook 不允许应用程序向用户发送私人消息(这是我的第一选择)。以他的名义在用户墙上发布的标准方式也不好,因为不会触发任何通知。因此,我的想法是代表应用程序在他的墙上发布(或任何将触发通知的类似操作)。

我知道应用程序请求,但它们也不是我正在寻找的,正如您所看到的,它们与我想要做的不匹配。

另请注意,该活动可能对每个用户来说都是特定的,因此不能发布帖子或其他内容供所有人查看(“Peter,一小时后你和 stacy 共进晚餐”)。

首先,我想知道是否可以代表应用程序(或 Facebook 页面,或任何其他想法)发帖。

如果不是,我希望看到任何其他想法来解决这个问题。请记住,触发通知非常重要。

感谢您花时间阅读本文,但我还有最后一个请求。

虽然我想做的很简单,但有很多类似的问题正在讨论,这可能会导致混乱,所以在回答之前请确保您完全理解我要问的内容。

再次感谢

For several years i have managed to sort things out without posting my own question, but by readings others instead. However, after reading over 200 useless posts, i've decided it's time i get some help.

I'm building a facebook app, and what i wan't to do is extremelly simple to explain. I wan't to notify a certain user about some event in real-time. For example, "the tv show you want to watch starts in an hour". Unfortunately, facebook doesn't allow apps to send private messages to users (which was my first choice). The standard way of publishing on a users wall on HIS BEHALF is not good either, because no notification is triggered. Therefore, my idea is to post on his wall on behalf of the app (or any similar action that will trigger a notification).

I know about app requests, but they are not what i'm looking for either, as you can see, they do not match what i want to do.

Also please note that the event may be particular for each user, so making a post or something for EVERYBODY to see is not an option ("Peter, you have dinner with stacy in an hour").

Firstly, i want to know if posting on the apps behalf (or facebook page, or any other idea) is possible.

If it isn't, i would like to see any other ideas to sort this out. Remember, it's extremelly important to trigger the notification.

Thanks for your time reading this, but i have one last request.

Although what i want to do is pretty simple, there are plenty of similar issues being disscused, which may lead to confusion, so please be SURE that you fully understood what i am asking before answering.

Thanks again

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

九命猫 2024-12-22 22:43:48

打开一个活动并自动邀请特定用户参加该活动怎么样?
活动邀请会触发通知,您唯一需要的是用户的电子邮件地址,您可以轻松获取该地址。

What about opening an event and auto inviting the specific user to the event?
Events invites trigger a notification and the only thing you need is the user's email address which you can easily get.

雅心素梦 2024-12-22 22:43:48

我不能 100% 确定您墙上发布的应用程序是否会启动通知*。尽管代表应用程序向用户墙发布信息当然是可能的。
您可以按照“应用程序登录”标题下的此链接上的说明进行操作检索作为应用程序进行调用所需的正确访问令牌。
为了拥有您指定的功能,您必须向您的用户请求 offline_access 权限 - 这将允许您在您的用户留言墙上发布内容,即使他/她当前没有进入或使用你的应用程序。 (或者甚至登录脸书)


*
Usually these posts on behalf of an app are user initiated - ie the user pressed "post to my wall."

I am not 100% sure if an app posting on your wall initiates a notification*. Although posting to a users wall on behalf of an app is certainly possible.
You can follow the instructions on this link, under the "App Login" title, and with that retrieve the correct access token you need to make calls as your app.
In order to have the functionality you specified, you'll have to request the offline_access permission from your users - this will allow you to post to your users wall even when he/she is not currently in or using your app. (or even logged into facebook)


*
Usually these posts on behalf of an app are user initiated - ie the user pressed "post to my wall."

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