Hi folks,
i'm trying to OAuth to Twitter and it then returns back to our localhost:port (eg. http://localhost:6969).
I'm also trying to use Linq2Twitter. When I try and setup my application in Twitter, it's not allowing me to set the
- Application Website.
- Website.
- Callback URL.
to be http://localhost:6969
So, how can i make twitter OAuth against my localhost development machine?
EDIT: I'm secretly hoping AArnott will find/read this post :)
EDIT 2:
Now that Andrew posted his thoughts, I'm adding some more info to get some more clarification of this reply.
So if this is the sample code (not mine btw, but some hire'd gun, here at work) to redirect to the SP (which is Twitter, in this case...)
public void StartOAuthAuthorize()
{
string link = twitterContext.GetAuthorizationPageLink(false, false);
var uri = new Uri(link);
NameValueCollection urlParams = HttpUtility.ParseQueryString(uri.Query);
OAuthToken = urlParams["oauth_token"];
HttpContext.Current.Session["twitterService"] = this;
HttpContext.Current.Response.Redirect(link);
}
This would be the place i would hijack the callback url.... ?