可以测试用户进行验证吗?他们可以有用户名吗? [英] Can test users be verified? Can they have usernames?

查看:103
本文介绍了可以测试用户进行验证吗?他们可以有用户名吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个应用程序,我想用一个用户的Facebook用户名进行处理。我知道我可以通过基本的用户对象得到这个,但是我很担心用户在登录我的站点/应用程序时没有FB用户名的情况,但是稍后会收到。问题是如何使用FB测试用户进行测试:

I'm working on an app where I'd like to be able to do things with a user's Facebook username. I know that I can get this through the basic user object, but I'm worried about the case where the user doesn't have a FB username when they register with my site/application, but does gets one later. The question is how to test this with FB test users:


  • 无论如何,用户(无论如何都是普通用户)之前他们可以得到一个用户名。是否可以验证测试用户?

  • A user (a regular user, anyway) has to be verified before they can get a username. Is it possible to verify test users?

如果是,可以给测试用户一个用户名吗?

If so, is it then possible to give a test user a username?

是否可以在测试过程中更改该用户名(有可能我的代码第一次无法正常工作)? / p>

Is it possible to change that username as part of the testing process (on the chance that my code doesn't work perfectly the first time :)?

我正在想的是在用户名上设置实时订阅,我建立的可能。如果上面的用户突然获得用户名,我的应用程序会收到通知,我可以做任何事情。但这意味着许多其他的事情是可能的,他们可能不会。我可以在登录时检索和检查用户对象,并继续更新字段,但是如果可能,我更愿意避免这种情况。任何建议在那里?

What I'm thinking of doing is setting up a realtime subscription on "username", which I've established is possible. If the user above suddenly gets a username, my app gets notified and I can do whatever I do with it. But that implies that a lot of other things are possible, which they may not be. I could retrieve and check the user object on login and keep updating the fields, but I'd prefer to avoid that if possible. Any advice out there?

推荐答案

您无法为测试用户声明用户名。您将不得不使用自己的帐户或测试一个真正的假帐户,Facebook皱起眉头。

You cannot claim usernames for test users. You will have to use your own account or test with a real fake account, which Facebook frowns upon.

这篇关于可以测试用户进行验证吗?他们可以有用户名吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆