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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:43:25+00:00 2026-05-26T12:43:25+00:00

In my current .NET and FBML-based facebook app, I have some code that looks

  • 0

In my current .NET and FBML-based facebook app, I have some code that looks like this:

<fb:request-form
        action="http://mysite.com/InvitesSent.aspx"
        method="POST"
        invite="true"
        type="SomeType"
        content="Here is an invite to <fb:req-choice url='http://mysite.com?<%=Params %>' label='My site' />">
    <fb:multi-friend-selector
            max="20"
            actiontext="Invite your friends!"
            showborder="false"
            rows="4"
            bypass="cancel"
            email_invite="false"
            exclude_ids="" /> 
</fb:request-form>

This pops up the multi-friend selector on my site from which the user selects some friends and presses ‘send invitations’ at which point the user is redirected to http://mysite.com/InvitesSent.aspx.

At the other end, the recipients of the invite see a notification with an ‘Accept’ button. When the button is pressed, facebook redirects immediately to my site with

http://www.facebook.com/l.php?u=http%3A%2F%2Fmysite.com%3F ...

which is facebook’s external link redirect thing. This redirect includes the parameters I supplied in the fb:req-choice url attribute.

My question is this: Since FBML is due to be discontinued, how do I achieve this behaviour in the Javascript SDK?

I can send notifications with FB.ui and apprequest, but I don’t appear to be able to tack on parameters to the URL as I can in FBML. I need this since I wish to reward the inviter and for that I need to be able to track individual requests.

Is any of this even possible in the new SDK? The documentation is confusing and sometimes makes distinctions between requests and invites, and sometimes not. To be honest, I’m not really sure if there is a difference, I’m just clinging on to clues in the FBML such as ‘invite=”true”‘ that might help me to divine a solution.

  • 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-26T12:43:25+00:00Added an answer on May 26, 2026 at 12:43 pm

    It’s not possible anymore, which is evident from the following paragraph in the developer documentation

    User Response

    If a user clicks ‘Accept’ on a request, they will be sent to the canvas URL of the application that sent the request. This URL will contain an additional parameter, request_ids, which is a comma delimited list of Request IDs that a user is trying to act upon:

    http://apps.facebook.com/%5Bapp_name%5D/?request_ids=%5Brequest_ids%5D
    As a best practice when the the user lands in your app you should read outstanding app requests. If the user clicked on a notification or request from the Dashboard you will be passed the request ID via the URL. Then as the user handles the request(s) you should delete them via the Graph API.

    Requests 2.0 requests will not get deleted when a user clicks on accept in Facebook’s API. You must read and clear them using the Graph API.

    So what you can try is this :

    1. when a user sends invites/requests to her friends, read the request_ids in the javascript callback, and store them into your db with ajax(so you can call InvitesSent.aspx).

    2. When a new user comes read the request_id and reward the user who sent the request.

    If you can tell me what happens when a user sends a request from an external web site and another user accepts, with the new JS SDK, i can be more specific with the solution. Basically if you keep an eye on the browser url, you’ll come to know how facebook is redirecting the new user who accepted. In the documentation accepting is mentioned only for canvas apps, so i’m not sure what happens for an external site. If you test it we can figure it out.
    EDIT:
    As Igy suggested, i guess accepting a request will always redirect to the canvas.

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

Sidebar

Related Questions

My current position is this: if I thoroughly test my ASP.NET applications using web
In my current project (ASP.Net 2.0) I have a lot of web user controls,
There was a time that I thought the current non-beta ASP.NET claimed the version
In our current Asp.net MVC application we have 2 menu systems one accross the
The current ASP.NET site that I am working on calls for multiple listboxes, 3
How to get the last time the current ASP.NET app was initiated?
I have a question about how to keep the current ASP.net/User's session during the
How can I retrieve the Created date from the current .NET assembly? I'd like
In my current C#/NET 3.5 application, I have a task queue (thread safe) and
In my current .Net 4.0 solution, I have one project containing a lot of

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.