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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:39:28+00:00 2026-06-06T03:39:28+00:00

I have been searching for a few hours and cant seem to find answer

  • 0

I have been searching for a few hours and cant seem to find answer to my problem, so i came here for help.

I have a like-gate on facebook. After user is trough he gets a friend invite window, this one works fine too, shows friends, text and invites people normally. The problem is when a user is invited to app, his link directs him directly to app without frame(no like button to continue).

I could fix this by using another like button, but i dont want to do that. Is there any way for me to create this sort of walkaround?

  1. People who didnt like the page get the splash screen. Not liked page
  2. People who liked, get inside.
  3. People who were invited, get the direct link without like button… link to the pic

I am pretty new at developing so please try to explain as simple as possible. Thank you in advance

  • 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-06T03:39:29+00:00Added an answer on June 6, 2026 at 3:39 am

    “The problem is when a user is invited to app, his link directs him directly to app without frame(no like button to continue).”

    This will redirect your visitors from the page without the Like button to the page with the Like button.

    <script>
        if(document.URL.indexOf("fb_source") != -1)
        {
        top.location.href = "http://www.facebook.com/pages/PAGE_NAME/PAGE_ID/APP_ID";
        //change accordingly
        }
    </script>
    

    “People who didnt like the page get the splash screen. People who liked, get inside.”

    Do a FQL query to check whether your visitors have already liked your page.

    $page_id = PAGE_ID; //change accordingly
    $facebook = new Facebook(array(
        'appId'  => APP_ID, //change accordingly
        'secret' => APP_SECRET, //change accordingly
        'cookie' => true,
    ));
    $access_token = $facebook->getAccessToken();
    
    function userIsFan()
    {
        global $page_id, $facebook, $access_token;
        $fql = "SELECT uid from page_fan WHERE uid=me() AND page_id='".$page_id."'";
        $param = array('method' => 'fql.query',
        'access_token' => $access_token,
        'query' => $fql,
        'callback' => '');
        $response = $facebook->api($param);
        if (isset($response[0]))
        {
            return true;
        }
        return false;
    }
    

    If they have liked your page, direct them to your application(yourApplication.php), else direct them to your splash page(splashPage.php) asking them to like your page.

    if (userIsFan())
    {
        header("Location: yourApplication.php"); //change accordingly
    }
    else
    {
        header("Location: splashPage.php"); //change accordingly
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been searching for the last few hours, and unfortunately I cannot seem
I've been searching for a few hours now and have been unable to find
I have been searching and experimenting for a few hours now, and I think
I have been searching for a few hours now on a way to fix
For the last few hours I have been searching high and low for a
I have been searching over the internet for the past few hours looking for
I've been searching for a few hours to find the right way to do
I have been searching and trying to work this out for a few hours.
I have been searching through here and google for a few days now, trying
I have been doing a lot of searching and still can't seem to figure

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.