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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:32:57+00:00 2026-06-15T06:32:57+00:00

My application is now finished, so to put it online I disabled ‘sandbox mode’

  • 0

My application is now finished, so to put it online I disabled ‘sandbox mode’ in application’s page. But it’s not working, if i’m logged as developer i can run the application, else i get a 404 error… Facebook told me it could take several minutes, but i disabled ‘sandbox mode’ at 11am !! Does Facebook need to validate my app?

  • 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-06-15T06:32:58+00:00Added an answer on June 15, 2026 at 6:32 am

    I found the solution :
    we can’t use header(‘location:xxx.php’) for asking app authorization, (because $loginUrl is null) it must be like this :

    try {
        // On récupère l'UID de l'utilisateur Facebook courant
        // On récupère les infos de base de l'utilisateur
        $me = $fb->api('/me');
    } catch (FacebookApiException $e) {
    
        // S'il y'a un problème lors de la récup, perte de session entre temps, suppression des autorisations...
    
        // On récupère l'URL sur laquelle on devra rediriger l'utilisateur pour le réidentifier sur l'application
        $loginUrl = $fb->getLoginUrl(
            array(
                'canvas'    => 1,
                'fbconnect' => 0,
                'redirect_uri' => 'http://www.facebook.com/pages/Point-dEncre-France-Page-officielle/178099798924693'
            )
        );
        // On le redirige en JS (header PHP pas possible)
        echo ("<script>top.location.href='".$loginUrl."'</script>");
    

    BUT to redirect users into the canvas app i must use

    header('location:xxx.php')
    

    and not

    <script>top.location.href="xxxx"</script>
    

    otherwise FB redirect the user out of the canvas view.

    And another tip : if you store the ‘user id’ into a db use a ‘big int’ column and not a ‘int’ column like i did!

    Hope it will help people

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

Sidebar

Related Questions

I finished the English version of my application and now I am working on
For Now, I'm finished with my application, and I want to put it on
I finished the English version of my application and now I am working on
I have just finished my android application and now it's time to test it
I almost finished my appliaction ... but now I can't use the ContentResolver like
I finished Michael Hartl's Ruby on Rails Tutorial. Now I'm working on the suggested
I just finished a little 5000-line PHP application and are now going into testing
In the application that I'm working on right now, I need to periodically check
I just finished a Java application to link to Sicstus prolog. Now I need
I finally have finished a Web Application and now I have to make it

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.