Callback URL with localhost?

412 views
Skip to first unread message

Jamie

unread,
Jul 28, 2010, 1:00:57 AM7/28/10
to foursquare API
Is it possible to use localhost in the callback URL for OAuth? I have
the callback URL set up as http://localhost:3000/login/verified but
when my app goes to Fourquare for authorization, it gives me the
verifier but doesn't redirect back to that URL. Am I missing something?

Kevin Marshall

unread,
Jul 28, 2010, 11:28:53 AM7/28/10
to foursqu...@googlegroups.com
If they redirect to that address it would be on their system (ie.
localhost to them does not point to the same spot as localhost for you
does)...

- Kevin

> --
> To post to this group, send email to foursqu...@googlegroups.com
>
> http://groups.google.com/group/foursquare-api

Jon Hoffman

unread,
Jul 28, 2010, 11:32:04 AM7/28/10
to foursqu...@googlegroups.com
Yes,

You should specify the oauth_callback in your request_token call.
Most oauth libraries provide that ability, but if you have trouble, reply with a code snippet.

See docs here: http://groups.google.com/group/foursquare-api/web/oauth

Thanks,

- Jon

Jamie

unread,
Jul 28, 2010, 11:32:59 AM7/28/10
to foursquare API
Thanks Jon. I tried that and it worked!
Reply all
Reply to author
Forward
0 new messages