# Flickr API integration problem

**URL:** <https://www.ruby-forum.com/t/flickr-api-integration-problem/162387>\
**Category:** Rails\
**Created:** [March 9, 2009, 2:39pm UTC](https://www.ruby-forum.com/t/flickr-api-integration-problem/162387 "2009-03-09T14:39:03Z")\
**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:** [March 9, 2009, 2:39pm UTC](https://www.ruby-forum.com/t/flickr-api-integration-problem/162387/1 "2009-03-09T14:39:03Z")

</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 = ‘XXXXXXXXXXXXXXXXXXXXX’  
FLICKR\_SECRET = ‘XXXXXXXXX’  
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 frob (108)  
/usr/local/lib/ruby/1.8/xmlrpc/client.rb:414:in `call': Invalid frob (XMLRPC::FaultException) from /usr/local/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/flickr/ base.rb:153:in`call\_unauth\_method’  
from /usr/local/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/flickr/  
auth.rb:52:in `getToken’  
from flickr2.rb:27  
Any help will be appreciated.
