我在使用 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。我怎樣才能解決這個問題?另外:其他功能(例如取消關注登錄注銷)工作正常,我只是關注功能有問題。
1 回答

楊魅力
TA貢獻1811條經驗 獲得超6個贊
正如您所說,在這種情況下,某些特定國家/地區的 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();
我希望這可以幫助你。
- 1 回答
- 0 關注
- 134 瀏覽
添加回答
舉報
0/150
提交
取消