向用户发布信息的 Facebook 应用程序日常墙
我是 Facebook 应用程序编程新手,但我想我已经掌握了总体思路。我正在创建一个应用程序,允许用户注册并选择朋友,以便在他们生日时自动发送生日消息。我知道如何获取用户和他们的生日,但是我如何每天浏览我的数据库,获取生日和朋友,并将其发布到他们的墙上?我想这需要某种 cron 作业,但是我如何以这种方式绕过权限呢?另外,我想从应用程序发帖,而不是我的用户帐户。我需要仅为该应用程序创建一个用户帐户吗?
谢谢大家。
I'm new to programming Facebook apps but I think I have the general idea down. I'm creating an app that allows users to sign up and select friends to automatically send a birthday message on their birthdays. I know how to grab users and their birthdays, but how do I go about going through my database everyday, grabbing the birthdays and friends, and posting to their walls? I imagine it would take a cron job of sorts but how do I get around the permissions this way? Also, I want to post from the app, not my user account. Do I need to create a user account just for the app?
Thanks all.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要扩展权限offline_access和publish_stream才能执行您所建议的操作。
还要研究 Facebook 平台政策,了解有关禁止行为的信息,例如填写用户消息参数,以及 Facebook 如何监控用户反馈,以自动禁止接收过多隐藏、阻止、垃圾邮件报告等的应用程序。滥用publish_stream和offline_access的应用程序很快就会被关闭。
您不需要仅为该应用程序提供用户帐户。
是的,如果您不想每天都自己运行程序,那么您需要一种按计划运行程序的方法。需要 cron 作业、Windows 计划任务或其他调度程序。
You need the extended permissions offline_access and publish_stream to do what you are proposing.
Also research Facebook Platform Policies regarding prohibited actions such as filling the user message parameter, and how Facebook monitors user feedback to automatically ban applications that receive too many hides, blocks, spam reports, etc. Apps that abuse publish_stream and offline_access get shut down very quickly.
You do not need a user account just for the app.
And yes you need a way to run your program on a schedule if you don't want to have to remember to run it yourself every day. a cron job, a Windows Scheduled Task, or other scheduler will be required.