0
使用Facebook SDK V 6的.NET,我想我的服務器使用Facebook應用程序創建一個張貼到用戶牆上C#的Facebook SDK - 服務器上發佈用戶的牆上
我的代碼:
var client = new FacebookClient();
dynamic result = client.Get("oauth/access_token", new {
client_id = appId,
client_secret = appSecret,
grant_type = "client_credentials"
});
client.AccessToken = result.access_token;
var args = new Dictionary<string, object>();
args["message"] = "abc";
args["caption"] = "This is caption!";
args["description"] = "This is description!";
args["name"] = "This is name!";
client.Post("user/feed", args);
應用程序配置: 擴展權限:publish_stream,read_stream,export_stream,status_update,share_item 用戶權限:user_about_me,publish_actions 對所有用戶可見 沙盒模式:禁用 的AppDomain:本地主機 網站網站與Facebook登錄 - 網站的URL:本地主機:8085
這位'用戶'即時試圖發佈在他的牆上是一個測試用戶在我的應用程序。 現在,當我到達client.Post("user/feed", args);
它拋出這個異常:
(OAuthException - #200)(200#)的用戶沒有授權 應用程序來執行此操作
解決方案?
我的用戶應該如何授予我的應用程序權限? – Kiquenet