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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:52:13+00:00 2026-06-13T08:52:13+00:00

I have a pretty straight forward page tab app that can be added to

  • 0

I have a pretty straight forward page tab app that can be added to anyones FB page. I am providing a button on my site to help users add the app to their FB page.

I want to update the iframe page tab url (and secure url) to include a query string. This will allow the content of the iframe to be custom for each user that adds the app to their page.

A basic use case is that User 1 clicks the button and the app gets added to their page. The content of the iframe is specific to user 1. User 2 does the same but the content of his tab is specific to user 2. I can handle the query string stuff on my site so that it responds correctly but I am not sure how to have the Tab url add the query string parameter from the Add App to Facebook button.

the current add app to facebook code I am using:

<div id='fb-root'></div>
<script src='http://connect.facebook.net/en_US/all.js'></script>
<p><a onclick='addToPage(); return false;'>Add to Page</a></p>
<p id='msg'></p>

<script> 
  FB.init({appId: "252314034891861", status: true, cookie: true});

   function addToPage() {

  // calling the API ...
  FB.ui(
    {
        method: 'pagetab'
    },
    function(response) {
        if (response != null && response.tabs_added != null) {

            $.each(response.tabs_added, function(pageid) {
                  alert(pageid);
            });
        }
    }
  );


  }

</script>

thanks for your help!

EDITED TO ADD MORE INFO

After talking this over with another dev, I wanted to make sure I am clear. Is User1 adds the tab to their page, then no matter who views the tab, the content will always be the contextual to User1. If User2 adds this tab to their page, then no matter who views the tab, the content will be contextual to User2. The content of the tab is specific to the user who added the tab to their page.

  • 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-13T08:52:14+00:00Added an answer on June 13, 2026 at 8:52 am

    You should make the content change based on the Page ID instead of the User ID of the Page Admin which added it. Short version: this is because you can’t reliably pass the user ID of the page admin in loads of the app (or any other information really, as users can manually access the tab)

    However, the page ID is passed with every request to your app via the page property of the signed_request along with some other parameters including the current user id (if they’ve authorised your app) and whether they’ve liked the page or are an admin of the page (regardless of their authorisation status)

    An app can’t be installed onto a page more than once, so the App ID / Page ID will be unique for your purposes

    The only other parameter you can pass through to a page tab app to customise the display is the app_data parameter which will be sent in the page property of the signed_request, but this only applies to links which contain that parameter: users clicking on the page tab directly won’t have that parameter passed through and would get the uncustomised content

    See the Page Tab tutorial in the getting started section of the Docs for more information

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

Sidebar

Related Questions

I have a pretty straight forward uploadified page that allows users to upload files,
Pretty straight forward question: I have page--front.tpl and page.tpl template pages in use in
I have a pretty straight forward task - Given the URL of a video,
My web app, up until this point, has been fairly straight forward. I have
This should be pretty straight forward but I can't seem to get my newbie
This is a pretty straight-forward problem. I basically have a div block on a
I have a pretty straight forward nested layout. _Layout defines all the global stuff.
So pretty straight forward but I cant find the answer. Say I have an
Have a pretty straight forward SSIS package: OLE DB Source to get data via
Okay, pretty straight forward JQuery question that I am struggling to find an answer

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.