Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error while trying to set up OAuth 2.0

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.

 

Best Answer
0 Votes
4 REPLIES 4

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
0 Votes

@datzlauren For the purposes of doing the tutorial, you can just set your callback/redirect to this: https://localhost

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer
0 Votes

I'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
0 Votes

@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.

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer
0 Votes