0

アプリケーション アクセス トークンを使用してユーザー ウォールに投稿しようとしましたが、それでもユーザー名から投稿されます。アプリ名からの投稿は可能ですか?

var fbc = new FacebookWebClient();
        var wc = new WebClient();
        var tokenStr = wc.DownloadString(string.Format("https://graph.facebook.com/oauth/access_token?client_id={0}&client_secret={1}&grant_type=client_credentials",
            FacebookApplication.Current.AppId, FacebookApplication.Current.AppSecret));

        fbc.AccessToken = tokenStr.Replace("access_token=", string.Empty);

        dynamic parameters = new ExpandoObject();
        parameters.message = "testMessage";
        //parameters.link = pageLink;
        parameters.name = "testCaption";

        dynamic result = fbc.Post(string.Format("{0}/feed", userID), parameters);
4

1 に答える 1

0
var fbPost = new FacebookClient ( accessToken );
         dynamic result = fbPost.Post ( "me/feed", new { message = "Welcome to C# SDK and me" } );
于 2012-08-18T15:34:15.157 に答える