I have created one twitter app through twitter api, but thing is that it works fine locally but when I took it to the server it doesn't work. Check this page, I can't conclude the reason. Although I changed the url in api settings as well.
I am using this plugin
I also doubt if it's curl base issue.