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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:02:05+00:00 2026-05-27T17:02:05+00:00

Short version I have a facebook iframe app as a page tab on a

  • 0

Short version

I have a facebook iframe app as a page tab on a fan page. The app collects entries for a contest. It lists the entries and also has a page for showing a single entry. I want to be able to link to the single-entry page – I have this working using the app_data parameter, but only if the user has used the app before. This does not work for a new user who has to add the app (log in).

Long version

So far I’ve managed to get this partially working by linking to

http://facebook.com/pages/<myPageName>/<myPageId>?sk=app_<myAppID>&app_data=<myUrlEncodedJsonData>

The app_data parameter is passed on to my application’s iframe by facebook and I can then process it server-side to redirect the user to the appropriate subpage. All seems to work well… but only if I had logged into the application before trying to access the deep-linked content.

If I try to deep link to the single-entry page and don’t have the application installed yet (scenario: I’m a friend of a contestant and I’ve been encouraged to vote for his entry, I haven’t used the app yet), then, after logging in, I’m on the index page of my app, and that is not what I’m after.

I’m using PHP facebook SDK to obtain a loginUrl like this:

$loginUrl = $facebook->getLoginUrl(array('canvas' => 1,'fbconnect' => 0, 'scope' => 'email,publish_stream,offline_access,user_likes,publish_actions', 'next' => $canvasPage));

where $canvasPage is the full URL of the app on my server, $loginURL is where I redirect the user if I detect he is not logged in my application.

What should I change to be able to direct new users straight to specific content (subpage) within my 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-27T17:02:06+00:00Added an answer on May 27, 2026 at 5:02 pm

    Solved. I used session to store where the user wants to get initially, then redirect him to the login page, and when he/she’s back, session is read to redirect the user to the final destination.

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

Sidebar

Related Questions

The short version is that I have a protocol which has an optional parameter.
Short version: I have a similar setup to StackOverflow. Users get Achievements. I have
Short version: I have a Django project under development & testing (not yet into
I have a short version of the question: I start a thread like that:
Short version: I have an MSBuild project that imports another project. There is a
Short Version I have a list of int s that I need to figure
Short version: Why don't I have to coerce 60, and int, into a double,
Short version of the question: Since I already have TortoiseHg, I right clicked on
Short version of what I want to accomplish : I have a foot pedal
Short version of the question: If you have a table with a large number

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.