You didn't specify a redirect_uri in your getLoginUrl method and hence the SDK constructed one for you that is based on your current URL. So all you need to do ...
Lee mas