oAuth Worked Example

121 views
Skip to first unread message

HJennerway

unread,
Dec 30, 2011, 2:50:50 PM12/30/11
to FatSecret Platform API
I'm really struggling getting oAuth working on iOS. Is there a worked
example which gives a set of starting values and what the end
signature should be which I could substitute into my code to try to
figure out whats wrong?

If I could see what should go in and what should come out I might have
a fighting chance. Even if there's just another open source app which
I can pick through which uses the same type of authentication?

John Freeman

unread,
Feb 12, 2012, 5:29:02 PM2/12/12
to FatSecret Platform API
On Dec 30 2011, 1:50 pm, HJennerway <hjenner...@mi6.nu> wrote:
> I'm really struggling getting oAuth working on iOS. Is there a worked
> example which gives a set of starting values and what the end
> signature should be which I could substitute into my code to try to
> figure out whats wrong?

There is a test file on my site that will show you some of the key
parts of the signing process (signature base string, signature,
encoded post query):

http://thejohnfreeman.com/fatsecret-php/example/test1.php

Each time you refresh that page, it will show a new session key
returned from the profile.request_script_session_key API method. The
fact that a session key is returned indicates that the signature was
accepted. I used the FatSecret PHP library.

I hope that helps. If you find a solution to your problem, could you
take a look at my issue please? I posted it here today:

http://groups.google.com/group/fatsecret-platform-api/browse_thread/thread/aafb4427ab0c8d62

- John
Reply all
Reply to author
Forward
0 new messages