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 6938729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:31:45+00:00 2026-05-27T12:31:45+00:00

This question was asked in another post at Facebook iframe app being redirected out

  • 0

This question was asked in another post at Facebook iframe app being redirected out of canvas after user authorization, however, I’m having the same problem and don’t understand how to implement the fix described in the post. If they posted the fixed controller, it would be awesome. Here’s my controller.

class AppController < ApplicationController

def index
@oauth = Koala::Facebook::OAuth.new("APP_ID", "APP_SECRET", "https://quiet-mist-8418.heroku.com/app/redirect" )
  if (session[:access_token].blank?)
    redirect_to @oauth.url_for_oauth_code and return
  end

  @graph = Koala::Facebook::API.new(session[:access_token])
  @friends = @graph.get_connections("me", "friends").to_s
end

def redirect
  @oauth = Koala::Facebook::OAuth.new("APP_ID", "APP_SECRET", "https://quiet-mist-8418.heroku.com/app/redirect" )
  session[:access_token] = @oauth.get_access_token(params[:code]) if params[:code]
  redirect_to(:action=>"index")
end

end
  • 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-27T12:31:46+00:00Added an answer on May 27, 2026 at 12:31 pm

    Interestingly, I went to the settings page of my the Facebook developer app, and made some changes to the settings > auth dialogue section, and it seems to be working as desired. I checked the section marked, “authentication referrals.” Now, it stays on the page after authorizing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I asked this question in another post - How do I put a <div>
I've asked this question as a comment on another post but couldn't get it
This is almost identical to this question asked by another user, and is the
I sort of asked this question at the end of another post but feel
This question is related to another question I asked Basically, I have 2 horizontally
This is a question I asked on another forum which received some decent answers,
This question is related to another question which I asked yesterday! List all links
(I asked this question in another way , and got some interesting responses but
This was the question asked in interview. Can we call one constructor from another
I asked this question earlier. I am intrigued by std::set but I have another

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.