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

How to register an app using localhost url

ANSWERED

I am trying to register an app using the url of:

https://localhost.

For the callback function, I use:

https://localhost/wordpress.

Is it valid?

When I use php api to invoke the oauth authentication, there is no http code in the response of the FitBitPHP->getProfile() that come back. The key and the value of my clients are both correct and I also set my request token and access token for OAuth. Does anybody know how to fix this problem??

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Yes, that is valid. You should set "http://localhost/callback" as your callback URL

For problems with the library, please file a ticket on their Github issues.

View best answer in original post

Best Answer
3 REPLIES 3

Yes, that is valid. You should set "http://localhost/callback" as your callback URL

For problems with the library, please file a ticket on their Github issues.

Best Answer

Thanks a lot. 

But my app still not work and I issues my problem on the github of php api.

Best Answer
0 Votes

Hello, I have the same issue, but on Android.. 

User is directed to the Authorization Page, when I click "agree", user is not redirected back to application.. 

 

I have already set callback_uri as:

 

Local Page with Auth Code, no redirect because not specified:

http://locallhost.com/

 

Error Not Found:

- http://locallhost.com/callback

- http://locallhost.com/redirect

 

What should I use to test locally? 

 

Oops it it not you, it is us.. 

- https://www.fitbit.com

 

Best Answer
0 Votes