Sign in with Twitter -> dev environment


#1

Hi…

At the moment we’re building a website with also a sign in with twitter button. I would like to test this on our local development machines. But this seems not to be working.

When I try some simple code for a connect button, it works on one of our servers for which I changed some settings in apps-config section on dev.twitter-site. But when I try to test the same code on my development machine (visual studio 2010, webserver: localhost:1748), it doesn’t.

I assume it has something to do with the app-settings. Can anyone tell me how to configure my app on dev.twitter.com so that I can test my website local?

Thanks!


#2

Are you using @Anywhere or the full OAuth flow? If you’re using @Anywhere, you may need to use host aliasing when testing in your local environment. If you’re using OAuth 1.0a, you need to send a dynamic oauth_callback on the oauth/request_token pointing at your local environment.


#3

Hi…

Thanks for your respons. I’m using following testcode:

If I need to use ‘host aliasing’, can you tell me how to do that?

Thanks!


#4

Anyone suggestion? How do I use the host aliasing to get this working locally?

Thanks!


#5

Hi

Implementing sign in with twitter using the localhost.:
While trying to update the Call back url: as http://localhost/sign_in_with_twitter/
It says URL invalid format.
@anywhere.js was giving javascript error -exception thrown and not caught.
Please suggest me how local host can be set for implementing sign in with twitter.


#6

“host aliasing” in this context just means (in UNIX environments) editing your /etc/hosts file such that a valid domain like “mytestsite.com” points to your own local machine ( 127.0.0.1 ) instead of the Internet.


#7

@Anywhere requires the use of publicly accessible non-localhost domain names to function. Make sure you’ve registered one or more domains (first with the callback URL in your app record, then additional ones with the “domains” feature) and alias your hosts if necessary.


#8

ما هى الطريقه لوضع تطبيق الاشتراك داخل مجونة بلوجر


#9

hi @episod Taylor Singletary
i am develop one application in phonegap andrid. and this application use sign in with twitter. but code is not working…
an u send me code in javascript…
thanks


#10

#11

#12