I am developing a Facebook app for a client. I want to add the client as a tester to the Facebook app so he can play around with it and give me feedback. The client and I are not friends on Facebook, so I am trying to add him by his Facebook ID, as instructed in the Add Tester modal.
When I enter his ID, I get a red x with the error message: "XXXXXXXXXXXX could not be resolved to a valid user ID or name." I have checked that the Facebook ID he gave me is correct via the Facebook Graph API Explorer.
How do I add him using his Facebook ID and get around this problem?
答案 0 :(得分:0)
似乎必须使用不是他们朋友的人的用户名将该人注册为您的应用的测试人员。 (感谢@CBroe让我试试。)
不幸的是,对于版本2.0及更高版本的Facebook Graph API,不推荐使用用户名字段:
{
{
"error": {
"message": "(#12) username field is deprecated for versions v2.0 and higher",
"type": "OAuthException",
"code": 12,
"fbtrace_id": "GnJd8sMSb7l"
}
}
据我所知,从Facebook ID获取用户名的最佳方法是浏览https://www.facebook.com/ {id}并从重定向的网址中获取用户名https://www.facebook.com/ {用户名}。