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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:05:03+00:00 2026-05-18T11:05:03+00:00

can I have a question about how to redirect the page after user invite

  • 0

can I have a question about how to redirect the page after user invite their friends?

i have a code like this: (in javascript)

    function inviteFriends(){
  if(isBusy) return false;
  isBusy = true;
  $(".musicPlayer").addClass("invisible");

  var fbsc = '<fb:request-form
action="apps.facebook.com/yourapp?pageid=thanks"
target="_self"
method="post"
nvite="true"
type="Contest"
content="Come and Join this contest!"> <fb:multi-friend-selector
target="_self"
showborder="false"
max="30"
import_external_friends="false"
email_invite="false"
cols="5"
actiontext="Invite your friends!" /></fb:request-form>';

  var uiSize = FB.UIServer.Methods["fbml.dialog"].size;
  FB.UIServer.Methods["fbml.dialog"].size = {width:625};
  FB.ui({
   method:'fbml.dialog',
   display: 'dialog',
   fbml: (fbsc),
   width: '625px'
  },function(response) {
   $(".musicPlayer").removeClass("invisible");
   window.location = "?pageid=thanks";
   isBusy = false;
  });
 }

that script will call fbml window with facebook’s invite friends dialog inside facebook dialog window.

what i want is:

  1. when you close the window (press x at top right corner) it’ll redirect to: ?pageid=thanks (this is works with the script above)
  2. when user press the skip button on invite friends dialog it’ll redirect to: ?pageid=thanks (this is not working – It’ll redirect to ?pageid=thanks but inside the fbml window)
  3. when user have done inviting their friends, it’ll also redirect to: ?pageid=thanks (this is also not working – it’ll redirect to ?pageid=thanks but in new window -.-!)

am I miss something on my script above, or I’m using the wrong way?
I’d like to achieve this for at least in IE and Firefox

is anyone have done with this before? I really need your suggestion,

EDIT:

if i put:

<fb:request-form target="_top" blah...> <fb:multi-friend-selector target="_self" blah...>

The skip button is working 🙂 but still, after you’re done inviting your friends it’ll redirect to a new window

If I Put:

<fb:request-form target="_top" blah...> <fb:multi-friend-selector target="_parent" blah...>

This is work if you invite your friends, but not if you press the skip button -.-!
I reckon this is because of facebook open-up another dialog window when you click invite your friends (to preview before you click send)

so the structure level was different between skip button and send button (i hope you got what I’m write)

Thank you in advance

AnD

  • 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-18T11:05:03+00:00Added an answer on May 18, 2026 at 11:05 am

    This is The answer 🙂

    var fbsc = '<fb:request-form action="url here" target="_top" method="post" invite="true" type="Contest" content="blah...">
    <fb:multi-friend-selector target="_top" showborder="false" max="30" import_external_friends="false" email_invite="false" cols="5" actiontext="Join NOW to WIN!" /></fb:request-form>';
    

    Note: target="_top"

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

Sidebar

Related Questions

I have this question about umbraco structuring and I can't find the answer anywhere.
I have a question about JSF and GET http request. How can I get
I have a question about a problem I'm struggling with. Hope you can bear
I have a question about joptionpane. Using JOptionPane.showMessageDialog(...), we can create a message dialog.
So, i have some question about xml Documents in Java. Can i get all
I have the following question about JPA: Can I save the order of the
Can anyone help me with a question about webservices and scalability? I have written
[This question is not about fixing the error. But about redirecting it] I have
I have a question about the datarow and how I can update it... I
I have some question about DataGridView . I can show table in DataGridView ,

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.