When I was trying to run the application I had faced this problem. It was resolved by setting authorize redirect URLs in a proper manner.
In this article you will learn about Google Transliterate API and how to handle and use it.