Facebook c# sdk 错误 OAuthException - #2
Facebook c# sdk error OAuthException - #2
我正尝试在我的 Facebook 页面上发布 post,但收到此错误消息
(OAuthException - #2) An unexpected error has occurred. Please retry your request later.
FacebookClient app = new FacebookClient(accesstoken);
var result = app.Post("/" + model.pageId + "/feed", messagePost);
dynamic messagePost = new ExpandoObject();
//messagePost.access_token="accesstoken";
messagePost.picture = "https://miro.medium.com/max/1200/1*mk16aYaf_Bes1E3Imhc0A.jpeg";
messagePost.link = "https://exemple.com/";
//messagePost.name = model.titre;
//messagePost.caption = "this post was created by my website";
messagePost.message = "test_message";
FacebookClient app = new FacebookClient(accesstoken);
var result = app.Post("/" + model.pageId + "/feed", messagePost);
问题是我给 facebook 访问令牌 2 次,这让 facebook 很困惑 api
我刚刚删除了 messagePost.access_token,它工作正常
我正尝试在我的 Facebook 页面上发布 post,但收到此错误消息
(OAuthException - #2) An unexpected error has occurred. Please retry your request later.
FacebookClient app = new FacebookClient(accesstoken);
var result = app.Post("/" + model.pageId + "/feed", messagePost);
dynamic messagePost = new ExpandoObject();
//messagePost.access_token="accesstoken";
messagePost.picture = "https://miro.medium.com/max/1200/1*mk16aYaf_Bes1E3Imhc0A.jpeg";
messagePost.link = "https://exemple.com/";
//messagePost.name = model.titre;
//messagePost.caption = "this post was created by my website";
messagePost.message = "test_message";
FacebookClient app = new FacebookClient(accesstoken);
var result = app.Post("/" + model.pageId + "/feed", messagePost);
问题是我给 facebook 访问令牌 2 次,这让 facebook 很困惑 api 我刚刚删除了 messagePost.access_token,它工作正常