从 Facebook 应用程序发布到多个用户个人资料

发布于 2024-09-25 00:48:13 字数 350 浏览 1 评论 0原文

我正在开发一个 Web 应用程序,我想将其与 Twitter 和 Facebook 集成。在某个时间,消息将自动发布在每个用户的 Twitter 和 Facebook 帐户的源上。

我目前正在研究 Facebook 组件。我知道,为了在 Facebook 上发布到用户的提要,他们必须授予我的应用程序publish_stream 权限。假设我有一个包含许多授予此权限的用户的数据库。我想在他们的所有提要上发布一条消息(对他们的朋友可见)。我是否需要逐一检查数据库并执行 API 调用来为每个数据库发布消息?这是我目前能想到的唯一方法,而且这样做似乎有些过分,尤其是随着数据库变得越来越大。

有没有更有效的方法来完成我所描述的事情?

谢谢。

I am developing a web application that I want to integrate with both Twitter and Facebook. At a certain time, messages will automatically be published on every user's feed, for both their Twitter and Facebook accounts.

I am currently working on the Facebook component. I know that in order to post to a user's feed on Facebook they must grant my app the publish_stream permission. Suppose I have a database of many users who have granted this permission. I want to publish a message on all of their feeds (visible to their friends). do I need to go through the database one-by-one and do an API call to post the message for each of them? This is the only way I can think of at the moment to do this, and it seems excessive to do this especially as the database gets larger and larger.

Is there a more efficient way to do what I describe?

Thanks.

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

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

发布评论

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

评论(1

梦中的蝴蝶 2024-10-02 00:48:13

我说这是唯一的方法 - 无论如何 - 你所说的看起来像是批量消息,从 Facebook 隐私政策的角度来看可能会被视为垃圾邮件。如果您想使用 Facebook 的平台来传播消息,请创建一个 Facebook 页面并让您的应用程序用户喜欢它,否则您将不得不“手动”完成此操作 - 将消息发送给您的每个人用户。这有一个积极的副作用 - 您可以为每个用户个性化消息(提及他们的名字、朋友的名字等),使您的应用程序更具社交性。

I say its the only way to do it - anyway - what you say looks like bulk messaging which might be thought as spam from facebook privacy policy point of view. If you want to use facebook's platform to do the spreading of the message, then create a facebook page and make your apps users to like that, otherwise you'll have to do it "by hand" - sending the message to each one of your users. This has a positive side effect - you can personalize the message for each of your user (mention their name, their friends name, etc), making your application more social.

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