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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:08:17+00:00 2026-05-30T19:08:17+00:00

I am using facebook new requests 2.0 for sending apprequests via application. Now I

  • 0

I am using facebook new requests 2.0 for sending apprequests via application. Now I have a custom message which is shown in the preview while sending the invitations, however, on the recipient side the message is not shown and a standard message is displayed. Please see the below code that I am using for this purpose.

<script type="text/javascript" src="https://connect.facebook.net/en_US/all.js"></script>        
    <script type="text/javascript">
    $(document).ready(function()        
    {           
            FB.init(                
            {                   
                appId: '<?php echo $this->fbappid; ?>',                 
                status: true,                   
                cookie: true,
                oauth: true,
                frictionlessRequests: true              
            }); 
            function sendRequestViaMultiFriendSelector() 
            {
                FB.getLoginStatus(function(response) 
                {
                    if (response.status === 'connected') 
                    {
                        var uid = response.authResponse.userID;
                        var accessToken = response.authResponse.accessToken;
                        FB.ui(
                        {
                            method: 'apprequests',
                            message: 'My Custom Message',
                            filters: ['all'],
                            data: '<?php echo $this->application . 'buddies/gifts/' . $this->gift_id ; ?>',
                            title: 'Send Gifts',
                            display: 'iframe'

                        }, 
                        function(response) 
                        {
                            //console.log(response);
                            if (response && response.to) 
                            {
                                var idds = response.to.join(',');
                                $('input[name=ids]').val(idds);
                                $('#invite').submit();
                                return false;
                            } else {
                                $('#invite_fail').submit();
                                return false;
                            }

                        });
                        $(document).oneTime(500,'check', function() 
                        {
                            $(".FB_UI_Dialog").css('width','550px'); 
                        });                             
                        $(".FB_UI_Dialog").css('width','550px');
                    } 
                    else if (response.status === 'not_authorized') 
                    {
                        $('#login_fail').submit();
                    } 
                    else 
                    {
                        $('#login_fail').submit();
                    }
                }); 
            }
            sendRequestViaMultiFriendSelector();
    });
    </script>
    <?php endif; ?>

I need to display that custom message otherwise there are huge chances that the users will ignore it and will consider it as spam.

  • 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-30T19:08:19+00:00Added an answer on May 30, 2026 at 7:08 pm

    Actually historically apps used to have control over the message and too many evil apps took way too much advantage of them. Facebook then re-engineered apps to give them less control over the content and how they are sent for very good reasons. This is the new Requests 2.0 variety. Right now, the only custom message you can provide to a recipient is on your auth dialog or in your app screens when the user is not an app user.

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

Sidebar

Related Questions

Does anyone have experience writing a Facebook application using GWT with GAE? I'm new
I have an iframe Facebook application (using Facebook's new JavaScript API) that needs to
how to develop new facebook application (login , add photos ) using the api
I am using the Koala gem to make facebook requests and i have the
Right now I am using Android's Bundle to create requests for Facebook Query Language
I have an existing rails application to which i am adding a new controller
When a request is sent using the new fbjs requests 2.0 on Facebook: 1
I have a couple of problems using facebook graph api. 1). When i try
I am using Facebook's API to create a new album with a picture from
I have integrated the Facebook-sdk successfully in to my appplication. Now i am going

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.