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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:21:37+00:00 2026-06-11T17:21:37+00:00

I need to develop a facebook app which runs inside a page tab. Only

  • 0

I need to develop a facebook app which runs inside a page tab. Only users who have liked this page should be able to use the app (and therefore authorize it).

Using the signed_request parameter it is fairly trivial to know if a given facebook user has liked the page or not:

var isFan = false;
if (req.facebook.signedRequest && req.facebook.signedRequest.page){
    isFan = req.facebook.signedRequest.page.liked;
}

This is working just fine.
Now, once a user has liked the page I show a ‘LAUNCH THIS APP’ button which will authorize it:

$('#authApp').click(function(){

                FB.login(function(response) {

                    if (response.authResponse) {
                        window.location = window.location;
                    }
                }, {scope: 'user_likes,user_photos'});
                return false;
            });

As you can see, if the app is authorised successfully I reload the page.

However, when the page reloads, the signed_request.page parameter is missing. So the html markup for non-fans shows up.

This is how the signed_request looks like when reloading after authorising the app:

{

algorithm: ‘HMAC-SHA256’, code:
‘…’,
issued_at: 1348003786, user_id: ‘100…’ }

If I refresh the page directly after that. Everything is fine, and the page info is there again:

{ algorithm: ‘HMAC-SHA256’, expires: 1348009200, issued_at:
1348004248, oauth_token: ‘AA..’, page: { id: ‘490…’, liked:
true, admin: true }, user: { country: ‘ec’, locale: ‘en_US’, age: {
min: 21 } }, user_id: ‘100…’ }

Is this how this is supposed to work?

What is the recommended way to work around this?

Thanks!

  • 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-11T17:21:39+00:00Added an answer on June 11, 2026 at 5:21 pm

    However, when the page reloads, the signed_request.page parameter is missing.

    Of course it is, because it’s only passed to your app on the initial load into the iframe (via a form with method=post submitted to the iframe).

    If you want to have the data it contains after a page reload, you have two options:

    • Put it into your own session, so you can access it from there any time.

    • Do not just reload your app inside of the iframe, but get the whole Facebook page reloaded (JavaScript, top.location). Then your app will be loaded again into the iframe, and will get the signed_request posted for a second time as well.

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

Sidebar

Related Questions

I need to develop a CRM system which will allow users to have a
I need to develop a page which has 2 dropdownlist. Options of dropdownlist 2
I need to develop an app that runs side by side with a django-app.
I'm planning to develop a facebook application about horoscopes. So I need users and
I need to develop an app in which I need to store the products
I need to develop a game that runs on Android/Iphone and on Facebook (an
I need to develop a Facebook application. I have generated the application ID and
I need to develop an app that is using multithreading. Basicly, I have a
Lets assume I have created a facebook app.So all those who(Admin) have facebook fan
I need to develop an app that has the share function. I have to

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.