I'm trying to write an ios app to retrieve fitbit data. I'm using this library: https://github.com/p2/OAuth2 and modified this code: https://github.com/p2/OAuth2PodApp to work with fitbit as opposed to github. I think I am not understanding something about the redirect_uri. I am able to get to the fitbit auth page and when I login with the following:
https://www.fitbit.com/oauth2/authorize?client_id={my client id}&redirect_uri={my registered sheme}%3A%2F%2Foauth%2Fcallback&scope=activity&response_type=code&state={user_id_specific_to_my_application}
I keep getting this after attempting to login to the fitbit auth page:
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
Answered! Go to the Best Answer.
Best AnswerDoh! My redirect_uri value did not match the URI in my app settings, gaack! Please ignore this question.