我在制作对话框以要求用户登录我的 Facebook 标签以参加比赛时遇到问题。
我们正在尝试使用带有以下代码的 FB.ui oauth 对话框。
FB.ui({
client_id: '12345',
method: 'oauth',
scope: 'email,user_birthday',
response_type: 'token',
redirect_uri: "https://mydomain.com/test.php" // Change this to proper address
});
当我们包含 redirect_uri 时,我们会收到以下消息
API Error Code: 100 API Error Description: Invalid parameter Error Message: The "redirect_uri" parameter cannot be used in conjunction with the "next" parameter, which is deprecated.
我们没有在任何地方使用下一个参数,所以不确定它为什么这么说。
当我们拿走时,redirect_uri
我们会收到以下消息。
API Error Code: 191 API Error Description: The specified URL is not owned by the application Error Message: redirect_uri is not owned by the application.