Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6564005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:54:48+00:00 2026-05-25T13:54:48+00:00

I am having an incredibly difficult time getting the OAuth gem working correctly for

  • 0

I am having an incredibly difficult time getting the OAuth gem working correctly for the Flickr API. I’m trying to generate a request token using this code:

user_oauth = OAuth::Consumer.new(consumer_key, consumer_secret, :site => "https://secure.flickr.com/services")
request_token = user_oauth.get_request_token(:oauth_callback => callback_url)

Whenever I run this code it throws an exception “OAuth::Unauthorized (404 Not Found)” on the call to .get_request_token.

I got my end point from: http://www.flickr.com/services/api/misc.overview.html

My OAuth gem is using the default request_token path, which should work with Flickr according to: http://www.flickr.com/services/api/auth.oauth.html#request_token I also tried using the endpoint that this link uses (http://www.flickr.com/services)

When I call .request_token_url on my OAuth::Consumer object, it returns “https://secure.flickr.com/services/oauth/request_token”, which I can access in my browser. Thinking that the flickr API might only work with GET requests, I changed the OAuth method to GET and it still didn’t work.

I’ve used this exact same code on different APIs before and it worked, so I’m not really sure what to do at this point. Any help would be appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:54:49+00:00Added an answer on May 25, 2026 at 1:54 pm

    I had the same problem. Request_token_url method returns right url, but I watch on true requested url by wireshark and there was http://www.flickr.com/oauth/request_token.. So it needs to move /services path from :site option into paths options.

    This code works for me, now:

        consumer = OAuth::Consumer.new(key, secret, 
                :site               => "http://www.flickr.com", 
                :request_token_path => '/services/oauth/request_token', 
                :authorize_path     => '/services/oauth/authorize',
                :access_token_path  => '/services/oauth/access_token')
        request_token = consumer.get_request_token
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having an array of N sets, what is the fastest way to generate the
Having problems figuring this out. trying to do a rescue_from NoMethodError, :with => :try_some_options
Having a problem with git-based gems. gem file contents: ... gem 'spree', :git =>
Having some problems getting JSTree to work with IE7 and 8. It works great
it is incredibly easy to hide content from someone who does not like your
I'm having an issue with a JFreeChart overlaid graph. I'm using JFreeChart 1.0.13. What
I've got the undoubted joy of having to put a very simple 'classic ASP'
It seems like every unit test example I've encountered is incredibly obvious and canned.
having a xml with same tag names but for that tag names values were
Having two lists [A,B,C,D] and [1,2,3,4] , I want to provide a user interface

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.