-1

Facebookに写真を投稿するのに問題があります.誰もがその方法を知っています. 助けてください。ありがとう。

  FacebookClient fb = new FacebookClient(App.AccessToken);

                fb.PostCompleted += (o, e) =>
                {
                    if (e.Error != null)
                    {
                        Dispatcher.BeginInvoke(() => MessageBox.Show(e.Error.Message));
                        return;
                    }

                    var result = (IDictionary<string, object>)e.GetResultData();

                    Dispatcher.BeginInvoke(() =>
                    {
                        MessageBox.Show("Success post message to the wall.");
                        // reset the selections after the post action has successfully concluded
                        tbmessage.Text = "";
                    });
                };

                var parameters = new Dictionary<string, object>();
                parameters["name"] = tbmessage.Text;

                dynamic res = fb.PostTaskAsync("me/photos", parameters);
4

1 に答える 1