【问题标题】:Having trouble posting a photo directly to Instagram with InstagramApiSharp无法使用 InstagramApiSharp 将照片直接发布到 Instagram
【发布时间】:2020-01-06 23:33:34
【问题描述】:

我使用以下代码将照片直接发布到 Instagram 但它给出了错误challenge_required。 您认为问题出在哪里?

        private async void btn_i_s_Click(object sender, EventArgs e)
        {
            var inbox = await ctx.api.MessagingProcessor.GetDirectInboxAsync(PaginationParameters.MaxPagesToLoad(1));
            var threadId = inbox.Value.Inbox.Threads.FirstOrDefault(i => i.Title == txt_u_p.Text).ThreadId;
            OpenFileDialog op = new OpenFileDialog();
            op.ShowDialog();
            var imageUp = new InstaImage()
            {
                Uri = op.FileName
            };
            var image = await ctx.api.MessagingProcessor.SendDirectPhotoAsync(imageUp, threadId);
            if (image.Succeeded)
            {
                MessageBox.Show("Sended ...");
            }
            else
            {
                MessageBox.Show(image.Info.Message);
            }
        }

【问题讨论】:

    标签: c# .net api instagram sharp


    【解决方案1】:

    这可以帮助吗:Challenge Require

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多