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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:27:15+00:00 2026-05-13T15:27:15+00:00

I am new to Facebooks applications, so forgive me if I got something wrong.

  • 0

I am new to Facebooks applications, so forgive me if I got something wrong.

How do I prompt users to install my application when they visit my application’s canvas page?

  • 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-13T15:27:16+00:00Added an answer on May 13, 2026 at 3:27 pm

    You need to put below code on top of the first access page to your application:

    $facebook = new Facebook($api_key, $secret);
    $facebook->require_frame();
    $user = $facebook->require_login();
    
    //catch the exception that gets thrown if the cookie has an invalid session_key in it
    try
    {
        if (!$facebook->api_client->users_isAppUser())
        {
            $facebook->redirect($facebook->get_add_url());
        }
    }
    catch (exception $ex)
    {
        //this will clear cookies for your application and redirect them to a login prompt
        $facebook->set_user(null, null);
        $facebook->redirect($iframepath);
    }
    

    Put in the your own API key and secret key. Thanks

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

Sidebar

Related Questions

I would like to display the users profile picture inside of my applications canvas
I am migrating my Facebook canvas application to using the new PHP SDK. However,
I finally got facebooks graph api to post messages on my fan PAGE as
I am completely new to Facebook application development, but I've got a straight-forward question.
I am very new to building applications on Facebook's platform. I don't own a
how to develop new facebook application (login , add photos ) using the api
I'm new to the Facebook application world and web hosting stuff. I tested my
I'm currently building a Facebook Application for a client using the new timeline layout
I need that my application publish new status on Twitter and Facebook , but
How do I like a page using the new Facebook iOS SDK? (http://github.com/facebook/facebook-ios-sdk) I'm

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.