3

我在使用 InstaSharp 在 Instagram 上关注用户时遇到问题这是我的代码:

private async void Follow()
{
    var followMe = await api.FollowUserAsync(userID);
    if (followMe.Succeeded)
    {
        MessageBox.Show("Followed");
    }
    if (!followMe.Succeeded)
    {
        MessageBox.Show(followMe.Info.Message);
    }
}

当我在 messageBox 中调用此方法时,它会显示 feedback_required。我怎样才能解决这个问题?

另外:Unfollow Login LogOut 等其他功能工作正常我只是对 Follow 功能有问题。

4

2 回答 2

1

如您所说,某些特定国家/地区的IP将在这种情况下被禁止。

如果您的客户来自这些国家/地区,您可以在程序中使用代理来解决此问题。

C# 通过代理连接

HttpWebRequest request = (HttpWebRequest)WebRequest.Create("[ultimate destination of your request]");
WebProxy myproxy = new WebProxy("[your proxy address]", [your proxy port number]);
myproxy.BypassProxyOnLocal = false;
request.Proxy = myproxy;
request.Method = "GET";
HttpWebResponse response = (HttpWebResponse) request.GetResponse();

我希望这可以帮助你。

于 2019-07-29T11:50:43.777 回答
1

我通过更改代理服务器解决了这个问题。似乎 Instagram 无缘无故禁止了我的 IP!

于 2019-07-29T08:43:19.437 回答