06-16-2015 12:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-16-2015 12:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hello
I am working on an application on android. I have used io.outh for authentication activity redirects the user to fitbit page where Fitbit asks user to authorize the app.After the user successfully approves the app.It shows a pin of 32 characters and didn't return to my android application. Due to this I am not able to get secret key and access token. What should I do please guide me. And is there any tool through which I can generate signature directly.
Kindly guide me further.
Thank you

06-18-2015 08:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
06-18-2015 08:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
At dev.fitbit.com, change your application from a Desktop app to a Browser app.

06-18-2015 09:37
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-18-2015 09:37
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thank you sir for your valuable suggestion. I did change my application type to browser but now it sends that the connection to server was unsuccessful and all other parameters as null after user allow my application. Kindly guide me further.

06-18-2015 10:26 - edited 06-18-2015 10:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
06-18-2015 10:26 - edited 06-18-2015 10:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@coolboy wrote:
Thank you sir for your valuable suggestion. I did change my application type to browser but now it sends that the connection to server was unsuccessful and all other parameters as null after user allow my application. Kindly guide me further.
Can you provide more information, including the raw HTTP request that your application is making once it gets the OAuth verifier?

06-18-2015 10:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-18-2015 10:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Sir i am using io.oauth api as described by fitbit.
Here is the code.
OAuth oauth=new OAuth(this);
//Initialising oauth object with public key provided by io.oauth
oauth.initialize("LMRSCl8-yjRii9bD3FWy1dLAGvs");
//Calling fibit api for user authorisation takes me to fitbit page where user allow the application.
oauth.popup("fitbit",new OAuthCallback() {
@Override
public void onFinished(OAuthData arg0) {
// TODO Auto-generated method stub
//Setting up the text view with returned value it shows connection to server was unsuccessful.
tv.setText(arg0.secret+" "+arg0.error+" "+arg0.status+" "+arg0.expires_in+" "+arg0.provider+" "+arg0.state+" ");
}
});

06-18-2015 10:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
06-18-2015 10:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Unfortunately I'm not very familiar with OAuth.io. You will be better served contacting their support.

