我在使用 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。 我该如何解决这个问题?
此外:取消关注登录注销等其他功能工作正常我只是关注功能有问题。
最佳答案
如您所说,某些特定国家/地区的 ip 将在这种情况下被禁止。
如果您的客户来自这些国家/地区,您可以在程序中使用代理来解决此问题。
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();
希望对你有帮助
关于c# - 如何在 C# 中使用 InstaSharp 关注用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57249536/