如何使用facebook测试用户从android [英] How to use facebook test users from android

查看:127
本文介绍了如何使用facebook测试用户从android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要帮助,使用Facebook的测试用户从android.I我正在使用Facebook的android sdk,我需要能够登录作为测试用户,并采取行动,如发布到流。我不想使用与此应用程序相关联的开发人员帐户,因为它是我的个人帐户。我知道测试用户只能使用api调用创建,这样一个调用返回登录URL,我明白如何在浏览器中使用它,但是如何在我的Android应用程序中使用它。我可以创建一个虚拟帐户并使用该帐户,或者是针对Facebook的政策。

I need help using the facebook test users from android.I am using the facebook android sdk and i need to be able to login as a test user and do actions like publish to the stream. I do not want to use the developer account associated with this application since it is my personal account. I realize that test users can only be created using api calls and such a call returns the login url, i understand how to use this in a browser but how can i use it in my android application. Can i create a dummy account and work with that account or is this against facebook policy.

推荐答案

测试用户也可以创建GUI - 不仅可以通过API调用。如果您需要处理少数用户,则GUI非常有用。如果有大量的API可以使用API​​,并以编程方式执行。

Test users can also be created with GUI - not only by API calls. GUI is useful if You need to handle just few users. If there is a plenty of them - it is easier to use API and perform it programatically.

如何通过FB GUI来处理测试用户:

How to handle test users by FB GUI:


  1. 转到 FB开发人员网站,您创建的位置应用标签上的FB应用

  2. ,点击编辑角色

  3. 在页面底部有列出所有测试用户的测试用户部分。这是测试用户可以创建和编辑的地方。每个用户都可以选择以此用户身份登录,更改他的名字并在他的个人资料照片旁边设置密码。

  4. 您必须设置用户密码才能登录他

  5. 使用他的个人资料电子邮件地址和密码登录 - 也可以从您的应用程序

  1. Go to FB developer site, where You created FB Application
  2. on application tab, click Edit Roles
  3. At the bottom of the page there is 'Test users' section where all test users are listed. This is where test users can be created and edited. Each user has option to log in as this user, change his name and set password next to his profile photo.
  4. You have to set user's password to be able to login as him
  5. Use his profile email address and password to login - it is also possible from Your app

您可以创建一个虚拟帐户,但这是针对FB政策,FB真的做了一切,使你更难...这不是一个选择。使用测试用户。

You can create a dummy account but this is against FB policy and FB really does everything to make it harder to You :) This is not an option. Use test users.

如果需要有关主题的更多信息 - 查看我的文章,关于测试用户策略
所有细节参见官方FB页面

If more info is needed on the topic - see my article, regarding test users strategy. All the detail see on the official FB page

这篇关于如何使用facebook测试用户从android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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