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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:38:19+00:00 2026-05-23T06:38:19+00:00

i need to make a page that will have a request dialog for a

  • 0

i need to make a page that will have a request dialog for a facebook page or a facebook app.
I need to get the number of friends the user sent the request to and at the end of the day the number of request that got accpeted from the specific user.

The scenario is for giving awards , the user that sent the most request to freinds gets an award and the user that had the most requests accepted also gets an award.

I dont know if the seccond is possible , but i think it should be , couse games on FB give u points for sent request and also u get new missions when friends accept your request , so there mut be a way.

—
I will record the number of invites sent.

Return Data
request_ids

A comma-separated list of the request_ids that were created. To learn who the requests were sent to, you should loop through the information for each request object identified by a request id.

FB.ui({
                   method: 'apprequests',
                   title:'Suggest '+fbAppName+' to your friends',
                   message: 'I thought you would dig this app!',
                   data: 'gameID=96'
       }, onInviteFriend);

//jquery required for ajax function
    onInviteFriend = function(response) {
        if (response && response.request_ids) {
            var idsLength = response.request_ids.length;
            var idList = "";
            var data = {};
            var ajaxSettings = {};
            for (var i = 0; i < idsLength; i++){
                idList += response.request_ids[i];
                if (i < idsLength-1){
                    idList += ",";
                }
            }
            if (idsLength > 0){
                data.idList = idList;
                ajaxSettings = {
                    type: "GET",
                    url: sketchnpass.root+"/ajax/log-invite-sent/",
                    data: data,
                    success: sketchnpass.onSaveInvites
                };
                $.ajax(ajaxSettings);
            }
            //was published
        } else {
            //was not published
        }
    }

i think using the code above i can get the number of sent requests.

But when some1 accepts the request how will i know that happened , does the accepted request send the user to my app along with some data?

  • 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-23T06:38:20+00:00Added an answer on May 23, 2026 at 6:38 am

    The Facebook requests dialog documentation basically walks you through how to do this.

    When requests are sent, request_ids is returned as return data so you would want to log this information in your system to track who sent how many requests.

    To track accepted invitations, the documentation says that this url is called: http://apps.facebook.com/%5Bapp_name%5D/?request_ids=012345678910 so you would just need to parse the request id and look that request id up in your system and mark it as accepted.

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

Sidebar

Related Questions

I need to make sure that user can run only one instance of my
Hi I am trying to use Django to make a page that will search
Alright, so I have some jQuery code that will send an AJAX request to
I need to make sure that when someone reloads or closes my page, their
I have a crystal report file I need make a tiny edit in. It
I need to make an ArrayList of ArrayLists thread safe. I also cannot have
I need to make some reflective method calls in Java. Those calls will include
I want to make a CListView that will read his rows from e remote
I have my server's apache configured to redirect every request into index.php, so that
I have a page that displays a grid of products that is populated programmatically

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.