简体   繁体   English

Android Facebook SDK-如何向测试用户发送请求?

[英]Android Facebook SDK - how to send a request to a test user?

This is actually a 2 parts question. 这实际上是一个两部分的问题。

  1. I cant figure out how to send a request to a test user using the request dialog. 我不知道如何使用请求对话框将请求发送给测试用户。 i was able to send it to a friend but how can i select a test user which is not part of my friends list ? 我可以将其发送给朋友,但是如何选择不属于我的朋友列表的测试用户呢? from the tutorial in Handle Request App Links it seems like you just need to define a Test User is the App Dashboard and he should selectable in the Send Request Dialog. 处理请求应用程序链接中的教程中可以看出,您似乎只需要将测试用户定义为应用程序仪表板,并且他应该在“发送请求”对话框中是可选的。 what am i doing wrong here ? 我在这里做错了什么?

  2. When i checked a request sent to a friend i saw that the actual notification he is getting is " My Name invited you to try App Name ". 当我检查发送给朋友的请求时,我看到他收到的实际通知是“ 我的名字邀请您尝试使用应用程序名称 ”。 and thats it. 就是这样。 What happened to the message and title parameters used in the Request Dialog ? “请求”对话框中使用的消息和标题参数发生了什么?

     Bundle params = new Bundle(); params.putString("message", "xxxxxxxxxxxxx"); params.putString("title", context.getString(R.string.app_name)); WebDialog requestsDialog = ( new WebDialog.RequestsDialogBuilder(context, Session.getActiveSession(), params)).build(); 

    are they just for the dialog itself ? 他们只是为了对话本身吗? if so, how disappointing it this. 如果是这样,这真令人失望。 i hope im wrong. 我希望我错了。

To whoever wondered about the first part of this question (the "duplicate" one) - In order to send a request to a test user, you have to do it from another test user. 对于想知道该问题第一部分的人(“重复”的人)-为了向测试用户发送请求,您必须从另一个测试用户那里进行请求。 you need to define 2 test users in the app dashboard and make them friends. 您需要在应用信息中心中定义2个测试用户并使其成为朋友。 then you need to login to one of them in which ever way you want and you will able to see the other one in the send request dialog. 那么您需要使用任意一种方式登录到其中一个,然后才能在“发送请求”对话框中看到另一个。

FB tutorials are just crap. FB教程只是胡扯。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM