Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 309153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:42:57+00:00 2026-05-12T07:42:57+00:00

i’m trying to OAuth to Twitter and it then returns back to our localhost:port

  • 0

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

  1. Application Website.
  2. Website.
  3. 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…. ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T07:42:57+00:00Added an answer on May 12, 2026 at 7:42 am

    The answer may surprise you…

    Give Twitter any callback URI it permits (probably the URL you imagine using in production) for your oauth client registration page.

    When you send your OAuth unauthorized token request, you have the option to provide a callback URL at that time, which Twitter will prefer to use instead. You can supply localhost at that time and it works perfectly.

    Since you’re using LinqToTwitter, which internally uses DotNetOpenAuth, there’s no need to specify ‘localhost’ when you’re issuing your request for authorization to the SP. DotNetOpenAuth automatically sees that you’re on localhost and sends that callback URI.

    Update: And be sure you’re running the latest version of LinqToTwitter (at least changeset 56159… more recent than release v1.11). Otherwise you’re using OAuth 1.0, and Twitter ignores the callback URL sent in the authorization request for OAuth 1.0 clients.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.