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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:36:53+00:00 2026-06-06T06:36:53+00:00

First, sorry for my bad English. I’ve an app which is installed on multiple

  • 0

First, sorry for my bad English.

I’ve an app which is installed on multiple fanpages.

I want an apprequest dialog in this app. When the user click on invite button he sees an apprequest dialog to invite friends but the notificacion redirect to the canvas page not to app on fan page.

I use this code:

<head>
    <title>Request Example</title>
  </head>

  <body>
    <div id="fb-root"></div>
    <script src="http://connect.facebook.net/en_US/all.js"></script>
    <p>
    <input type="button"
      onclick="sendRequestViaMultiFriendSelector(); return false;"
      value="Send Request to Many Users with MFS"
    />
    </p>
    <script>
      FB.init({
        appId  : '123456789',
        status : true,
        cookie : true,
        oauth: true
      });

      function sendRequestViaMultiFriendSelector() {
        FB.ui({method: 'apprequests',
          message: 'Example message',
          show_error: true,
          redirect_uri: 'https://www.facebook.com/pages/PAGE_ID?sk=APP_ID'
        }, requestCallback);
      }

      function requestCallback(response) {
        // Handle callback here
      }
    </script>

  </body>

What am I doing wrong? Configuration of Canvas Page? Redirect Uri?

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-06T06:36:56+00:00Added an answer on June 6, 2026 at 6:36 am

    You’re not doing anything wrong, requests are always ‘delivered’ to the canvas URL when accepted.
    You need to include some data with the requests that your app can use to decide which page to redirect to.

    Easiest way to do this is to use the data parameter of the Requests dialog.

    So in your request sending code:

    function sendRequestViaMultiFriendSelector() {
            FB.ui({method: 'apprequests',
              message: 'Example message',
              show_error: true,
              data: "PAGE_ID_OR_SOME_OTHER_DATA_HERE",
              redirect_uri: 'https://www.facebook.com/pages/PAGE_ID?sk=APP_ID'
            }, requestCallback);
          }
    

    Then when processing the accepted request on the app’s canvas, check the data parameter of the request object (a GET request to /REQUEST_ID_HERE will return it) and decide which page to redirect to based on that

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

Sidebar

Related Questions

At first sorry my bad English. I want define routing for this url: For
First sorry for my bad English. I have this menubar in PHP. I want
at first sorry my bad English I want load model in my plugin controller
first of all... i'm italian, so i'm sorry for my bad english! so... this
First : Appologize for my bad english. Sorry for this newbie software question, but
first of all sorry by my bad english, Hello i am new in this
First. Sorry for bad english. I want to make some common transformation of Map
First, sorry for my bad English. I'm writing a python script, which compares the
First, sorry for my bad English. I'm trying to get an IP from user.
At first, sorry for my bad English I want set exclude files in jrebel

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.