开发/测试 Facebook 应用程序的最佳替代方法?
由于当前测试用户图 API 的限制、有缺陷的平台(例如,我现在甚至无法以测试用户身份登录我的应用程序)以及博客和论坛中完全缺乏 Facebook 的反馈,我的应用程序开发几乎停滞不前。我边写边学习,所以我需要不断测试代码以确保它有意义。我正在制作的应用程序依赖于多个用户同时进行的交互,因此使用我自己的帐户(或者至少仅我的帐户)实际上是不可行的。
所以,我的问题是:你们有一个不违反 Facebook 合同的好的替代解决方案吗? (即,创建一堆常规的虚假帐户不是解决方案)。您如何测试您的应用?
提前谢谢您。
Due to the limitations of the current test users graph api, the bugged platform (e.g., I can't even log into my app as a test user right now) and the complete lack of feedback from facebook in the blog and in the forum, I'm pretty much stalled with the app development. I'm learning as I write so I need to constantly test the code to make sure it makes sense. The app I'm making relies on the interaction of several users at the same time, so it is not really feasible to use my own account (or, at least, ONLY my account).
So, my question is: do you have a good alternative solution that does not break fb contract? (i.e., creating a bunch of regular, fake accounts is NOT a solution). How are you testing your app?
Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
除了使用测试帐户之外,我认为没有其他方法可以进行测试。我认识的每个为 Facebook 进行开发的人都有多个用于测试的帐户。我认为,如果这就是您使用它们的全部目的,而不是试图滥用该网站,他们会忽略您违反此特定规则的情况(从未听说过有人因此而被捕)。
另外,请记住,通过本地主机进行测试时,并非所有 Facebook 功能都会按预期工作。因此,最好拥有一个可以快速、频繁地部署应用程序的测试服务器。
另外,创建 Facebook 应用程序的两个版本 - 生产版本和测试版本通常也很有帮助。这样,当涉及到更新/修复应用程序时,您可以在沙箱中进行操作,同时它已经上线并且人们预计不会出现停机。
I see no other way to test besides using test accounts. Everyone I know who develops for Facebook has several accounts just for testing. I think if that's all you're using them for, and not trying to abuse the web site, they'll look past you breaking this particular rule (never heard of anyone getting busted for it).
Also, remember that not all Facebook features will work as expected when testing via localhost. For this reason it's good to have a test server you can quickly and frequently deploy your app to.
Also (also), it also often helps to have two versions of the Facebook application created - prod and test. This way you can play in a sandbox when it comes to updating/fixing the app, while it's already live and people expect no downtime.