应用测试用户无法喜欢该页面。

发布于 2024-10-20 12:09:05 字数 154 浏览 2 评论 0原文

我正在开发一个 Facebook 应用程序,我需要测试用户来测试它。

我知道 Facebook 现在提供了创建测试用户的可能性,但他们不能“喜欢”公共页面,这阻止了我使用它们,因为“喜欢”是我唯一需要的东西。

你知道有什么解决办法吗?

提前致谢。

I'm developing a facebook application and I need test users to test it.

I know that facebook provides now the possibility to create tests users, but they can't "like" a public page and this prevent me to use them because the "likes" is the only thing I need.

Do you know any solutions?

Thanks in advance.

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

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

发布评论

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

评论(2

如果没有你 2024-10-27 12:09:05

添加“Like”按钮代码非常简单,因此如果您的测试目标是确保它能在 Facebook 上正常工作,您所需要做的就是使用 FB 参考 ,您无需测试即可确信它可以正常工作。

如果您的测试目标是根据响应数量测试其他内容,并且您需要良好的数字表示(例如 10、100、1000...),那么您有 2 个选择:

  • 将“pseudo like”挂钩到某些file/db 表,您可以根据需要更改它,使用您需要测试的所有数字进行测试,然后替换为真正的 FB Like,
  • 因为 Like 是基于 URL 的,在测试过程中您可以使用其他一些 Like 代码来测试您的逻辑页面(已经有不同数量的喜欢)。例如,我在上面提供了一个链接,大约有 65k 个赞,因此我可以暂时使用该页面的代码来测试我的逻辑是否有 65k 个赞。

当然,之后你仍然可以通过你的朋友作为测试对象来测试一些数字。

Adding Like button code is quite simple, so if the goal of your testing is to make sure it will work properly with Facebook, all you need is to generate Like code using FB Reference , and you can be confident it works without testing.

If the goal of your testing is testing something else, based on number of responses, and you need a good representation of numbers (e.g. 10, 100, 1000, ...), you have 2 options:

  • hook "pseudo like" to some file/db table where you can change it as you want, test with all the numbers you need to test, and then replace with real FB Like
  • since Like is based on URL, during testing you could test your logic using Like code for some other pages (that already have different number of likes). For example reference page I gave a link to above, has about 65k likes, so I could use code for that page temporarily to test my logic for 65k likes.

After that you still can test a few numbers by using your friends as test subjects of course.

栩栩如生 2024-10-27 12:09:05

如果有一个网站,您可以要求所有朋友帮助您...一个网站,其中包括让那些朋友“喜欢”您正在做的任何事情的能力...您必须确保这些朋友愿意在工作日抽出一小段时间(喘息)不工作并查看网站......

除了讽刺之外,我认为你最好的选择是询问 Facebook 上的人点赞只是为了帮助您完成一个项目。

If only there were a website where you could ask all of your friends to help you... a website that included the ability for those friends to "like" whatever it is you are working on... you'd have to ensure that those friends were willing to spare a brief moment of the work day to (gasp) not work and view the website instead...

Sarcasm aside, I think your best bet will be to ask the people on facebook for a few likes just to help you with a project.

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