[swx] flickr api keys, secrets and tokens
Hans Elgelid
helgelid at telia.com
Wed Oct 24 19:53:26 PDT 2007
Thanks for telling about auth.php and getToken.php in the phpFlickr
library .
After adding my api key and shared secret and browsing to:
http://localhost/swx/php/lib/phpFlickr/getToken.php
I get redirected to the url entered when signing up at Flickr followed
by a frob, looking something like:
http://mysite.com/?frob=7215576083917047-896834e23f0049f-14877455&extra=%2Fswx%2Fphp%2Flib%2FphpFlickr%2FgetToken.php
Recognising this and perhaps know the solution?
Since the subject of this thread is spot on I continue the token hunt...
I'm trying to use the authentication protocol descibed in method
authGetFrob() in Flickr.php
authGetFrob() works fine and returns a frob
authGetUrl(frob) works fine and returns an url which when pasted
into a browser takes me to my Flickr acount where I'm asked to accept
that my application uses Flickr.
authGetToken(frob) shows in SWX Data Analyser: message=Invalid Frob
code=108 error=true
I'm using the same frob returned from authGetFrob() which seemed to be
OK since authGetUrl(frob) is working.
Any ideas?
/Hans
Aidann Bowley wrote:
> Hi there,
>
> First, let me say I'm really impressed by SWX - it seems to be really useful
> and fairly easy to use.
>
> A tip for those trying to get Flickr to work who are as inexperienced as me.
>
> Obviously you need your own api key, shared secret and auth token. You'll
> probably need to edit auth.php and getToken.php in the phpFlickr library in
> the api once you've got the key and secret from Flickr, and then hit
> getToken.php in your browser to generate the auth token - the service
> explorer didn't work for me.
>
> Then, aswell as editing line 41 in Flickr.php in the services folder with
> your new key and secret, make sure you also add the following to line 42 of
> Flickr.php so that it reads:
>
> $this->api->setToken("your auth token here");
>
> add appropriate token between the inverted commas. If you don't, methods
> that require authentication won't work, and those that also require
> authentication if they they're dealing with private images but otherwise
> work fine might give you misleading error messages.
>
> Oh, also be handy to add a link to this mailing list on the official site
> somewhere (or maybe I missed it), and perhaps a forum or wiki...
>
> Cheerio folks,
>
> Aidann
>
>
>
>
>
>
>
> _______________________________________________
> swx mailing list
> swx at osflash.org
> http://osflash.org/mailman/listinfo/swx_osflash.org
>
>
More information about the swx
mailing list