Hi, I had the same problem (Could not recognize the response from Twitter) and encountered your topic. None of the above resolved my issues. It turned out I had to change settings at dev.twitter.com. Under Settings-tab I set [Application type] to “Read and write” and updated it.
Just as zbastrout said I also entered in a [Callback url] (which annoyingly cannot be a localhost-address, which is the first place a developer wants to test, I filled in my customers url instead). Though I’m not sure if that step was really necessary.
It may take some minutes before Twitter responds positively on reauthorizing.
The PHP-fix by atorreno also didn’t work for me, so don’t forget to restore the code to the original state if that didn’t help!
Thanks for leading me in the right direction, guys!