我在本周早些时候用WP7.1(Mango)的附录对Facebook C# SDK v6.0.16进行了审判。
The goal is to post a photo on the wall of a user through a facebook app, so I started to implement login to get an access token. Bad surprise, I can t get a combination that works fine:
- using the desktop page give a very small display on the phone screen
- using the mobile page is fine, however gives the following error after login is successful:
"An error occurred with YOURAPP. Please try again later. API Error Code: 11 API Error Description: This method is deprecated Eror Message: Display=wap dialogs have been deprecated. Yo can temporarily enable them by disabling the "july_2012" migration. They will stop working permanntly on July, 2012."
守则一的使用是:
private Uri GenerateLoginUrl(string appId, string extendedPermissions)
{
var parameters = new Dictionary<string,object>();
parameters["client_id"] = appId;
parameters["mobile"] = true;
parameters["redirect_uri"] = "https://www.facebook.com/connect/login_success.html";
parameters["response_type"] = "token";
parameters["display"] = "touch";
if (!string.IsNullOrWhiteSpace(extendedPermissions))
parameters["scope"] = extendedPermissions;
return fb.GetLoginUrl(parameters);
}
以及产生的尿素记录仪是SDK本身产生的m.facebook.com/dialog/oauth?etcetc。
令我看,SDK本身偏离了对APIC的解读,或者我失踪了。
Any suggestion? Thank you