我正在尝试做一个共享链接的 Windows 8 应用程序...
我已经有一个访问令牌。如何打开提要对话框?
我正在使用以下代码:
var facebookURL =
"https://www.facebook.com/dialog/feed" +
"?display=popup" +
"&app_id=" + FBI.appID +
"&access_token=" + FBI.auth.getAccessToken() +
"&link=http://apps.microsoft.com/windows/app/archery-master/172c7273-10a8-4519-8a66-68ec4dae12f1" +
"&picture=http://wscont1.apps.microsoft.com/winstore/1x/0a119429-8795-4e0b-9f1a-d55bb5e8c2b1/Icon.70730.png" +
"&name=Archery%20Master" +
"&caption=I%20have%20a%20new%20best%20score" +
"&description=My%20best%20score%20was%20300%20points" +
"&redirect_uri=" + FBI.auth.callbackURL;
var startURI = new Windows.Foundation.Uri(facebookURL);
var endURI = new Windows.Foundation.Uri(FBI.auth.callbackURL);
Windows.Security.Authentication.Web.WebAuthenticationBroker.authenticateAsync(
Windows.Security.Authentication.Web.WebAuthenticationOptions.dafault, startURI, endURI)
.done(function (result) {
switch (result.responseStatus) {
case Windows.Security.Authentication.Web.WebAuthenticationStatus.errorHttp:
break;
case Windows.Security.Authentication.Web.WebAuthenticationStatus.success:
break;
default:
break;
}
}, function (err) {
});
但是,我有以下错误:
API Error Code: 110
API Error Description: Invalid user id
Error Message: Missing user cookie (to validate session user)
建议?