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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:33:25+00:00 2026-05-26T01:33:25+00:00

I am developing a facebook app where users watch videos from a playlist and

  • 0

I am developing a facebook app where users watch videos from a playlist and view images from galleries. The app itself is hosted on my server then set as a canvas page in facebook. What I want is for users to be able to “Like” individual videos and photos. I have currently set it so that the when a photo/video is selected it ammends the href attribute of the “Like” button with the url of the appropriate page appended with a querystring for the image/video id.

e.g. href=”http://www.myApp.com/index.php?id=0001″

This works but the problem is when that “Like” event is posted on the users wall the link created goes to hosted page and not to the facebook canvas page (in other words it leaves facebook). What I want is for the “Like” link on the users wall to take them to the canvas page and select the correct page and image/video within the page.

I could set the href to go to the canvas page but that would the app at the homepage and I want it to go straight to the liked image/video. Is there perhaps a way I can ammend the url so that when it is clicked it tells facebook exactly what url to set for the canvas 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-05-26T01:33:26+00:00Added an answer on May 26, 2026 at 1:33 am

    Incase anyone else is having difficulty with this I have found a solution.

    Set the href attribute of your “Like” button to the facebook page of your app i.e. “apps.facebook.com/myApp/”

    You can then add your own querystrings on the end to identify where in the app you want to go. Pick names which are likely to be unique to your app so it doesn’t accidently clash with anything Facebook might be processing at the same time. i.e.

    “apps.facebook.com/myApp/?myAppPage=photos&myAppId=003”

    Now in your landing page code put something like this at the top:

    if (isset($_REQUEST['myAppPage'])) {
    $myAppPage = $_REQUEST['myAppPage'];
    if (isset($_REQUEST['myAppId'])) {
        $myAppId = $_REQUEST['myAppId'];
        $qsName;
        switch ($myAppPage) {
            case "photos":
                $qsName = 'gal';
                break;
            Case "videos":
                $qsName = 'vid';
                break;
        }
        header("Location: $myAppPage.php?$qsName=$myAppId");
    }
    }
    

    This should redirect your app to the page you want without leaving Facebook. Then you just need to program your page to load the correct content based on the new querystrings passed in the header.

    Hope this helps someone.

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

Sidebar

Related Questions

I'm developing a Facebook app which allow my users to draw their wanted path
I'm developing a web app where users enter their facebook page url either in
I'm developing a canvas application for facebook and I want to prevent users from
I'm developing an iOS app. I get collection of images from web, store them
I'm developing a facebook app with rails that uses external apis from my own
I'm currently developing an app for facebook. It will be used for fan-gating users
Im developoing an app for the iPhone where users can chat using their facebook
I'm developing a facebook app right now all by my lonesome. I'm attempting to
I've been developing a Facebook app using Google App Engine in Python and the
I started developing a Facebook app using the new Graph API. I want 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.