Solved

linking page tab and php page in facebook app

Posted on 2011-09-28
2
211 Views
Last Modified: 2012-05-12
Hi,
I have created a facebook app, which I want to use in a few different facebook accounts. When loading the tab page, I wish to load a page that is querying a mysql database and loading site specific information, but without recreating the app every time.
Can I add the same page tab app and just edit the querystring of the page being called with an id=, or will I need to recreate a new app for each id, to allow a different querystring identifier?
Thanks for any advice here as Im struggling to find apprpriate advice on the best way to go re the latest tab pages and how to load for different facebook users,

Mike
0
Comment
Question by:helpfulMike
2 Comments
 
LVL 2

Accepted Solution

by:
gattytto earned 500 total points
ID: 36911157
when you call an app from a fanpage (and if I'm right also from app tab) you can use the app_data variable to pass a string that will be received in the $_REQUEST['signed_request'] into the app.

when you serialize that into a variable you get an array which will contain ['app_data'] key with the string value you passed in the url.
0
 

Author Closing Comment

by:helpfulMike
ID: 36934466
THanks so much for your help, Really appreciated
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The viewer will learn how to count occurrences of each item in an array.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question