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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:17:49+00:00 2026-05-25T14:17:49+00:00

I am using canvas for application development and the CodeIgniter framework. I have a

  • 0

I am using canvas for application development and the CodeIgniter framework.

I have a link in a view, <a href='http://example.com/index.php/module/controller/action'>click here</a> and I have a controller as:

public function index() {
    $user_profile = $this->facebook->api('/sujeet216');
    $token        = $this->session->userdata('token');

    $response     = $this->fb_model->checkUser($token);
    if ($response->num_rows <= 0) {
        if($this->fb_model->insertUser($user_profile,$token)) {
            $this->load->view('intro',$user_profile);
        }
    }
    else {
        $this->load->view('index',$user_profile);
    }
}

public function intro2() {
    $this->load->view('intro2');
}

Whenever I click a link, it redirects to the index controller. How do I load intro2 page from the second function?

  • 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-25T14:17:49+00:00Added an answer on May 25, 2026 at 2:17 pm

    It’s possible that the app is trying to authenticate and Facebook redirects the app back to the callback URL that you have set. You have two options to combat this:

    1. Use a library, for example the PHP-SDK and ensure you autoload it, this will ensure that the access_token isn’t lost.
    2. Ensure that the API is being called and the access_token is being passed from each controller.

    I’d recommend going for option number 1 as it gives you much more flexability in relation to using the API once the user has authenticated against Facebook.

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

Sidebar

Related Questions

I have a Flex application where I'm using a Canvas to contain several other
I am migrating my Facebook canvas application to using the new PHP SDK. However,
I'm writing a web application using a <canvas> element. For simplicity, I have stripped
I am developing paintbrush application in javasript using Canvas Object. I want to change
We currently have an iframe-based Facebook canvas application in the works. The canvas portion
I'm writing a Facebook Iframe canvas application using the Facebook Toolkit . There is
I have an iframe Facebook application (using Facebook's new JavaScript API) that needs to
I am creating a canvas application using the Facebook C# SDK and am trying
I am working on a Facebook canvas application. I created a sample project using
this seems like a simple problem. I have a canvas application that I am

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.