The provided value for the input parameter ‘redirect_uri’ is not
valid. The expected value is
‘https://login.live.com/oauth20_desktop.srf’ or a URL which matches
the redirect
为什么我一直收到这个错误.我在windows live developer app中设置了域名
在< head>中我有这个元素
就在< body>下面我有这个元素
WL.init({
client_id: '{S_AL_WL_CLIENT_ID}',//{S_AL_WL_CLIENT_ID} = PHPbb template variable for client_id
redirect_uri: '{AL_BOARD_URL}',//{AL_BOARD_URL} = PHPbb template variable for the urlencoded domain name
response_type: 'token',scope: ["wl.signin","wl.basic","wl.birthday","wl.emails","wl.work_profile","wl.postal_addresses"]
});
登录按钮是
听众
jQuery('#login a').click(function(e)
{
e.preventDefault();
WL.login({
scope: ["wl.signin","wl.postal_addresses"]
}).then(function (response)
{
//do something with stuff here. You know brainy type ajaxy stuff to auth a user
},function (responseFailed)
{
console.log("Error signing in: " + responseFailed.error_description);
});
});
最佳答案