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

  • Home
  • SEARCH
  • 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 8236299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:05:38+00:00 2026-06-07T19:05:38+00:00

I am able to send app request using request dialog to 50 of a

  • 0

I am able to send app request using request dialog to 50 of a user’s friends with to= field modification but I want to send requests to all of a user’s friends like this example app does: Invite your friend button for pages

This app invites users first 50 friends than again invites users next 50 friends and so on

In my code I forward the users to this URL using PHP

https://www.facebook.com/dialog/apprequests?app_id=443468799026324
&to=" . $friend_ids .  "
&max_recipients=50&filters=app_non_users
&redirect_uri=" . urlencode($canvas_page2)  . "
&message=" . $message;

Facebook offical guide for request dialogue

How do I proceed from here?

  • 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-07T19:05:40+00:00Added an answer on June 7, 2026 at 7:05 pm

    You can do this as follow:
    First you set 50 friends id in to parameter and store remaining friends id in cookie now when you send request then it redirects to your site url where you can repeat above step.i.e. send 50 friends request and store remaining in cookie.

    var to="";
        for(var j=0 ; j< 50 && j<friends.length ; j++){
            if(friends[j].checked == true){
                to += friends[j].value;
                if(j != friends.length-1 && j != 49){
                    to += ',';
                }
            }
        }
        var redirect_uri=your_site_url+"?button=inviteresponse";
        var callbackto="";
        for(var i=j;i<friends.length;i++){
            callbackto += friends[i].value;
            if(i != friends.length-1){
                callbackto += ',';
            }
        }
        document.cookie = "param="+callbackto+";path=/";
        var url="https://www.facebook.com/dialog/apprequests?app_id="+app_id+"&to="+to+"&message=Checkout apps&redirect_uri="+redirect_uri;
        window.open(url,'', 'width=900,height=500,resizable=yes,scrollbars=yes');  
    
    case "inviteresponse":
            if (empty($_COOKIE['param'])) {
                unset($_COOKIE['param']);
                echo "<script type='text/javascript'>window.close();</script>";
                die();
            } else {
                $friends = explode(",", $_COOKIE["param"]);
                $to = "";
                for ($j = 0; $j < 50 && $j < count($friends); $j++) {
                    $to .= $friends[$j];
                    if ($j != count($friends) - 1 && $j != 49) {
                        $to .= ",";
                    }
                }
                $redirect_uri = your_site_url+"?button=inviteresponse";
                $callbackto = "";
                for ($i = $j; $i < count($friends); $i++) {
                    $callbackto .= $friends[$i];
                    if ($i != count($friends) - 1) {
                        $callbackto .= ",";
                    }
                }
                unset($_COOKIE['param']);
                setcookie("param", $callbackto);
                $url = "https://www.facebook.com/dialog/apprequests?app_id=" . APP_ID . "&to=" . $to . "&message=Checkout apps&redirect_uri=" . $redirect_uri;
                header("Location: " . $url);
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

let's say user send app requests to his friends, this request will be targeting
I'm using javascript request dialog to send app invite to friends. when i send
I have an app where we want users to be able to send us
I would like my android app to be able to send some information to
I need to build Android application using Java which is able to send request
I'm writing a Nodejs app that needs to be able to send email. So
I want to be able to send formatted text (i.e., text with format spans)
I would like to write an HTTP server that answer to request using a
I'm developing an app in IOS using RestKit . Data is retrieved successfully but
I'm making a simple Facebook app that posts updates to the user's timeline using

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.