Getting forbidden 403 exception when posting links to twitter from C# application


#1

Hi,

Below is the code we got for posting image/video links to twitter from C# application. But we got exception [forbidden 403] while posting this.
Please see below my code and let me know if I do anything wrong.

oAuth.AccessTokenGet(Request[“oauth_token”], Request[“oauth_verifier”]);
if (oAuth.TokenSecret.Length > 0)
{

url = “https://api.twitter.com/1.1/statuses/update.json”;

Json = oAuth.oAuthWebRequest(oAuthTwitter.Method.POST, url, “status=Maybe%20he%27ll%20finally%20find%20his%20keys.%20%23peterfalk&trim_user=true&include_entities=true”);
String responses = Server.HtmlEncode(Json);
}

Please help me on this asap.

Thanks in advancce.

Regards,
NIkhil