Since it works in your development machine, i suspect this could be the "System Time" issue. I have faced these kind of problems with OAuth earlier.
OAuth will silently fail if your system date/time is not set properly. So please check the system date and time (Timestamp).
From the above article, "This is important because your OAuth call might silently fail if the timestamp is far enough away from universal coordinated time that it appears as if it has expired."
Note:- I have faced this issue while i was devoloping WebOAuth. But this is seems to be a general OAuth specification. So hopefully, this is the problem in your case also.
Hope this helps.
Thanks & Regards