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

  • SEARCH
  • Home
  • 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

I am having an incredibly difficult time to decorate a Zend form the way
I hope someone can help here, we're having an incredibly annoying time with Visual
Hi I am having an incredibly hard time with what should be a simple
Having a heckuva time with this one, though I feel I'm missing something obvious.
Having a problem getting a TreeView control to display node images. The code below
I appreciate this is an incredibly noob question, but having Googled multiple combinations of
I'm having an incredibly frustrating problem that appears to be a bug, but I
I found user controls to be incredibly useful when working with ASP.NET webforms. By
I apologize for the incredibly simplistic nature of this question but I am having
I am trying to delete a resource bitmap through code and am having trouble

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.