I am trying to set up an iOS app with the fitbit API. I am admittedly new at this. I am running through the OAuth 2.0 tutorial page on the fitbit dev website, and when I click on the authorization url I get the following message:
"The app you're trying to connect did not provide valid information to Fitbit. Please report this issue to them.
Developer information: invalid_request - Invalid redirect_uri parameter value"
I have my redirect URI set to "myAppName://oauth-callback" because this is the callback URL used in my app. Any help is greatly appreciated.
I updated my callback uri in the app settings, and now when I try to run my app, it hangs on the authorize call.
When I try clicking the link in the tutorial in chrome it just hangs on a white screen, and in Safari it gives an error that it can't read URLs starting with myAppName://.
Any thoughts?
Best Answer
Community Moderator Alumni are previous members of the Moderation Team, which ensures conversations are friendly, factual, and on-topic. Moderators are here to answer questions, escalate bugs, and make sure your voice is heard by the larger Fitbit team. Learn more
@datzlauren For the purposes of doing the tutorial, you can just set your callback/redirect to this: https://localhost
Best AnswerI'm also new to this and I had the same issue as @datzlauren - I changed my calleback/redirect uri to your suggestion, but I get an error on the API Explorer page when I try to select the oAuth 2.0 authentication option:
"The app you're trying to connect did not provide valid information to Fitbit. Please report this issue to them. Developer information: invalid_request - Invalid redirect_uri parameter value"
Best Answer
Community Moderator Alumni are previous members of the Moderation Team, which ensures conversations are friendly, factual, and on-topic. Moderators are here to answer questions, escalate bugs, and make sure your voice is heard by the larger Fitbit team. Learn more
@mejian Yeah, we're aware that the API Explorer is currently not working.
I was referring to the OAuth 2.0 tutorial page. You can use the tutorial instead of the API Explorer for now.
Best Answer