Fixed a bug where setting sandbox to false would not generate the correct oauth url for authentication.