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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:10:21+00:00 2026-05-25T21:10:21+00:00

Is it possible to setup a fan page to work as follows? User lands

  • 0

Is it possible to setup a fan page to work as follows?

  1. User lands on my clients fan page
  2. Sees a “Like me” graphic
  3. User likes the page
  4. User is then taken to a 760px wide app

The two parts i am struggling with are:

  1. Creating a separate fan and none fan landing page
  2. When liked, load up a 760px wide app

Do I control the like/nonlike graphic from my app using either PHP or Javascript by seeing if the user has already liked my app?
How do I force the liked page to load a 760px wide 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-05-25T21:10:22+00:00Added an answer on May 25, 2026 at 9:10 pm

    You can capture like button events.

    Facebook elements events

    Example:

    <script>
        window.fbAsyncInit = function() {
            FB.init({appId: '127654160646013', status: true, cookie: true, xfbml: true});
            FB.Canvas.setSize({ width: 520, height: 742 });
            FB.Event.subscribe('edge.create', function(response) {
                window.parent.location = ADDRESS;
            });
        };
        (function() {
            var e = document.createElement('script'); e.async = true;
            e.src = document.location.protocol + '//connect.facebook.net/lt_LT/all.js';
            document.getElementById('fb-root').appendChild(e);
        })();
    </script>
    

    Also you need get user fan status. Here is a solution:

    <?
    define('FACEBOOK_APP_ID', 'xxx');
    define('FACEBOOK_APP_SECRET', 'xxx');
    
    $is_fan = false;
    if (!empty($_REQUEST['signed_request'])) {
    
        list($encoded_sig, $payload) = explode('.', $_REQUEST['signed_request'], 2);
    
        $sig = base64_decode(strtr($encoded_sig, '-_', '+/'));
        $data = json_decode(base64_decode(strtr($payload, '-_', '+/')), true);
    
        $expected_sig = hash_hmac('sha256', $payload, FACEBOOK_APP_SECRET, true);
    
        if ($sig == $expected_sig) {
    
            if (!empty($data['page']['liked'])) {
                $is_fan = true;
            }
        }
    }
    ?>
    

    There is everything you need. And just remember, you can redirect only via javascript:

    window.parent.location = ADDRESS;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to setup ASP.NET MVC 2 to work with a MySQL database?
Possible Duplicate: Allow php sessions to carry over to subdomains How to setup user
I would like to know if it's possible to setup an HTTP Proxy for
I am trying to determine if it is possible to setup an interceptor like
Do you know if it is possible to setup mongodb instance in spring like
Possible Duplicate: What are the specific differences between .msi and setup.exe file? I am
Is it possible to have nested set capabilities in this somewhat custom setup? Consider
I was wondering if it's possible to have a java package setup using a
So I have an interesting image setup and I was wondering if it's possible
Is it possible to setup UIImageView to handle image orientation? When I set the

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.