I just feel the need to add a tip here:

I use the windows hosts file  (c:\windows\system32\drivers\etc\hosts ) to
make my local test server mimic the live server. Similar tricks are
available on pretty much every OS.

That way, I can test with a "fully live" codebase and no need for URL
passing


Jason
Snackr.co.uk

On Thu, Oct 28, 2010 at 11:34 AM, Robert Brehm <rpbr...@gmail.com> wrote:

>
> Never mind.  I found that I needed to use the twitter4j
> getOAuthRequestToken method that accepts a callback URL.  Bob
>
> On Oct 27, 2:10 pm, Robert Brehm <rpbr...@gmail.com> wrote:
> > Hi,
> >
> > I have been having trouble getting my app to redirect to localhost.
> > Here's the URL.
> >
> > http://api.twitter.com/oauth/authenticate?oauth_token=XXX&oauth_callb..
> ..
> >
> > What's happening is the twitter application is using the URL supplied
> > as the Callback URL in the browser application.
> >
> > Before URL encoding the callback URL
> ishttp://localhost/myapp/SocialMediaLogin/socialmedialogin.do?provider=....
> > Questions:  is the query: ?provider=Twitter throwing off the
> > callback?  What else could be causing the callback not to work?
> >
> > Thanks,
> >
> > Bob
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>



-- 
Jason Brown
e+msn: stopthatastron...@gmail.com
skype: stopthatastronaut
m: 0405 130 409
web: http://skepticator.com/
blog: http://mycolleaguesareidiots.com/
twitter-corporate: @sharedpoints
twitter-personal: @drunkenmadman

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to