getting the access token fails :(

84 views
Skip to first unread message

tamir

unread,
Feb 27, 2012, 10:47:53 AM2/27/12
to FatSecret Platform API
Hi,

I'm currently working my way through the 3rd step Oauth and having
this annoying problem that I
can't seem to pass...
I'm trying to get the access token but from some reason I'm getting
this:

"Invalid signature: DTXxQBGwe8Q0rgDue719NPnbEMM%3D"

I really tried to stick to the instruction here:
http://platform.fatsecret.com/api/Default.aspx?screen=rapitlsa#request_token

so i don't know what went wrong...
this is my signature string (key replaced with XXs):

GET&http%3A%2F%2Fwww.fatsecret.com%2Foauth
%2Faccess_token&oauth_consumer_key%XXXXXXXXXXXXXXXXXXXXX%26oauth_token
%3D3ecc88e99f36480995bf6ff57fbea41f%26oauth_signature_method%3DHMAC-
SHA1%26oauth_timestamp%3D1330356994%26oauth_nonce%3Dbbb%26oauth_version
%3D1.0%26oauth_verifier%3D3978539

I would appriciate it if anybody can tell me what's wrong with
it... :)

Thank you,
Tamir.

John Freeman

unread,
Feb 27, 2012, 6:02:47 PM2/27/12
to fatsecret-p...@googlegroups.com, tamir
On 2/27/2012 9:47 AM, tamir wrote:
> GET&http%3A%2F%2Fwww.fatsecret.com%2Foauth
> %2Faccess_token&oauth_consumer_key%XXXXXXXXXXXXXXXXXXXXX%26oauth_token
> %3D3ecc88e99f36480995bf6ff57fbea41f%26oauth_signature_method%3DHMAC-
> SHA1%26oauth_timestamp%3D1330356994%26oauth_nonce%3Dbbb%26oauth_version
> %3D1.0%26oauth_verifier%3D3978539

You can test here:

http://term.ie/oauth/example/client.php

Make sure you are combining the consumer (your app) key and the token
(your app's user) key correctly for the hash function.

If you are using PHP, I can share my small helper library with you.

- John

tamir

unread,
Feb 28, 2012, 9:07:31 AM2/28/12
to FatSecret Platform API
thanks for your reply John
unfortunately i still can't get it to work...

i know it's alot to ask but your my last hope! perhaps you can send me
these two part:
1- ,the string that you send, should be something like what i sent you
in previous post, GET&http...
2 - the parameters you send to your hmacsha1 function as "text" and
"key"

i don't expect you'll give me your loging details but maybe, if you
could, just the parameters names :)

Levi Kemp

unread,
May 10, 2012, 5:06:34 PM5/10/12
to fatsecret-p...@googlegroups.com, tamir
John,

I am trying to get oauth to work in FatSecret as well and decided to test it with the link you provided.

I've used http://www.fatsecret.com/oauth/access_token and http://www.fatsecret.com/oauth/request_token as the endpoints with my consumer key and consumer secret. But I always get:

Missing required parameter: oauth_callback 

Any thoughts on what might be wrong?

John Freeman

unread,
May 10, 2012, 6:51:40 PM5/10/12
to fatsecret-p...@googlegroups.com, Levi Kemp
On 5/10/2012 4:06 PM, Levi Kemp wrote:
> Missing required parameter: oauth_callback
>
> Any thoughts on what might be wrong?

See the documentation for the parameter here:

http://platform.fatsecret.com/api/Default.aspx?screen=rapitlsa
Reply all
Reply to author
Forward
0 new messages