C#MVC Facebook创建活动
我试图从我的应用程序中创建Facebook事件,但得到(#100)个无效参数OAutheExceptionC#MVC Facebook创建活动,c#,facebook,facebook-graph-api,C#,Facebook,Facebook Graph Api,我试图从我的应用程序中创建Facebook事件,但得到(#100)个无效参数OAutheException string FB_Start = String.Format("{0:s}", _sTime); string FB_End = String.Format("{0:s}", _eTime); ev.Add("name", Name); ev.Add("start_time", FB_Start); ev.A
string FB_Start = String.Format("{0:s}", _sTime);
string FB_End = String.Format("{0:s}", _eTime);
ev.Add("name", Name);
ev.Add("start_time", FB_Start);
ev.Add("end_time", FB_End);
ev.Add("description", Description);
ev.Add("location", Location);
怎么了?我如何解决这个问题?我尝试使用DateTime变量not string,但不起作用,尝试使用DateTime.Now.AddDays(2.ToUniversalTime().ToString(CultureInfo.InvariantCulture),但不起作用我不知道。如果使用v2.0,则无法通过Graph API创建事件。在这里查看我的答案和链接的Facebook文档
另外,请看这里:Ohh。坏消息:(但谢谢你提供的信息。也许你知道从C#MVC应用程序创建facebook事件的其他方法(不使用graph API或我不知道)吗?不知道。我想没有,因为FB是出于一个假定的目的来限制它的。也许我可以使用v1.0 graph API吗?可能吗?
client.Post("/me/events", ev);