Oauth_Nonce

53 views
Skip to first unread message

hubiedoo517

unread,
Feb 3, 2012, 4:10:14 PM2/3/12
to FatSecret Platform API
How many characters should I make the oath_nonce parameter when making
the URL request. I can access the data but 50% of the time, but I get
a bad oauth_signature Error the other 50%. I believe the problem lays
in the oath_nonce or the timestamp parameters. I'm using Objective C.
For time stamp I'm using a (double) thats the time interval since
1970. And for the oauth_nonce I wrote a method that generates a random
string using characters [a-z 0-9]. Currently I am sending a 15
character string for the nonce. Anyone have any clue to the length I
should be making the nonce and the timestamp? Any help would be much
appreciated. Thanks....

John Freeman

unread,
Feb 12, 2012, 5:10:58 PM2/12/12
to FatSecret Platform API
On Feb 3, 3:10 pm, hubiedoo517 <hubiedoo...@gmail.com> wrote:
> Currently I am sending a 15
> character string for the nonce. Anyone have any clue to the length I
> should be making the nonce and the timestamp? Any help would be much
> appreciated. Thanks....

I have seen two OAuth implementations (the PHP FatSecret library, and
the PHP library from the official OAuth project), and they both use
md5 hashes of random numbers, which yields a 32 character string.

Suzanne Hornbuckle

unread,
Feb 15, 2012, 9:35:55 PM2/15/12
to fatsecret-p...@googlegroups.com
I decided not to do it. Thanks anyway!


--
You received this message because you are subscribed to the Google Groups "FatSecret Platform API" group.
To post to this group, send email to fatsecret-p...@googlegroups.com.
To unsubscribe from this group, send email to fatsecret-platfor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fatsecret-platform-api?hl=en.


Reply all
Reply to author
Forward
0 new messages