# Flickr Api integration problem

**URL:** <https://www.ruby-forum.com/t/flickr-api-integration-problem/160882>\
**Category:** Rails\
**Created:** [February 20, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/flickr-api-integration-problem/160882 "2009-02-20T16:20:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![srinu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f475e1/32.png) [@srinu](https://www.ruby-forum.com/u/srinu)\
**Post date:** [February 20, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/flickr-api-integration-problem/160882/1 "2009-02-20T16:20:37Z")

</div>

I have gone through the rflickr README, and it says to get the token.  
I have struck-up here with getting auth.token.

## My script looks:

require ‘flickr’  
FLICKR\_KEY = ‘f8ecb4b6ef8c94934034e04c79d645db’  
FLICKR\_SECRET = ‘daa2d9158df1458c’  
FLICKR\_CACHE = “#{RAILS\_ROOT}/config/flickr.cache”

flickr = Flickr.new(FLICKR\_CACHE, FLICKR\_KEY, FLICKR\_SECRET)

## unless flickr.auth.token frob = flickr.auth.getFrob puts “#{frob}” link = flickr.auth.login\_link puts puts link puts puts “copy and paste the above url into your browser then hit enter after viewing the page” gets flickr.auth.getToken(frob) flickr.auth.cache\_token end

My code is breaking …

ERR: Invalid auth token (98)  
/usr/lib/ruby/1.8/xmlrpc/client.rb:414:in `call': Invalid auth token (XMLRPC::FaultException) from /usr/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/flickr/ base.rb:153:in`call\_unauth\_method’  
from /usr/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/flickr/  
auth.rb:72:in `checkToken' from /usr/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/flickr/ auth.rb:47:in`load\_token’  
from /usr/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/flickr/  
auth.rb:19:in `initialize' from /usr/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/flickr/ base.rb:124:in`new’  
from /usr/lib/ruby/gems/1.8/gems/flickers-2006.02.01/lib/  
flickr/base.rb:124:in `auth’  
from script/authorize\_flickr.rb:20

Any help will be appreciated.
