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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:50:07+00:00 2026-05-30T17:50:07+00:00

NOTE: This is a facebook app which runs at page tab. i have data.php

  • 0

NOTE: This is a facebook app which runs at page tab.

i have data.php file which gets all thing.
i get signed request with this following code:

$facebook = new Facebook(array(
'appId' => $app_id,
'secret' => $app_secret,
'cookie' => false
));
$access_token = $facebook->getAccessToken();
$signedRequest = $facebook->getSignedRequest();
$user_id = $signedRequest['user_id'];
$liked = $signedRequest['page']['liked'];

In my index file i have some include action for fan or not fan and step php files.

Here is my index code:

require_once ('data.php');
if(isset($fid)){
    if(isset($liked)){
        $step = CHECK_STEP($fid);
        if(isset($step)){
            if($step == '1'){
                include('fan-step1.php');
            }
            if($step == '2'){
                include('fan-step2.php');
            }
            if($step == '3'){
                include('fan-step3.php');
            }
            if($step == '4'){
                include('fan-step4.php');
            } 
        } else {
            include('fan.php');
        }
    } else {
            include('notfan.php');
    } 
} else {
    if(isset($liked)){
            include('fan.php');
    } else {
            include('notfan.php');
    } 
}

i’m using ajax in step php files to update database for step check. if ajax action complete, action reflesh the page. Code:

success: function(){
                             window.location = window.location.pathname;
                        }

after refreshing the page index file or data file cant get the page liked request. then if i refresh the page manual (ctrl+F5). It get the request and include next step php file.

What is wrong? why it cant get the liked request after js refresh?

  • 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-30T17:50:08+00:00Added an answer on May 30, 2026 at 5:50 pm

    With your redirection, you refresh your iframe. The signed request of facebook however, is sent via POST to your iframe. So if you just refresh your iframe, the signed request will not be sent again, since the second request (after the refresh), the request is not performed by facebook, but from within your application.

    Reload the complete page (facebook + your tab) instead, using top.location.

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

Sidebar

Related Questions

I have a facebook app which run only through a fan page. Go to
(Note: This is for MySQL's SQL, not SQL Server.) I have a database column
Note: This is the opposite direction to most similar questions! I have an iPhone
Note: This question has broadened in scope from previous revisions. I have tried to
This is the code I'm putting on my website: <iframe src=http://www.facebook.com/plugins/like.php?app_id=5766773068&amp;href&amp;send=false&amp;layout=standard&amp;width=47&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=35 scrolling=no frameborder=0 style=border:none;
I'm working on Facebook Canvas Game project together with iPhone Native Game App which
I have a Facebook page at https://www.facebook.com/xxxx and a web site at http://xxxx.com .
Considering the following sample XAML file, which shows the first 1000 people of Facebook,
Possible Duplicate: Hide facebook app from search Okay, I know that this question was
For those of you who have used the Facebook app, it has an interesting

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.