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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:39:17+00:00 2026-05-24T23:39:17+00:00

In my Facebook application I am displaying a message window using FB.ui { method:

  • 0

In my Facebook application I am displaying a message window using FB.ui { method: ‘send’ …}. I would like to capture the list of recipients (stored in the ‘recipitents []’ hidden form field) as well as the message text in my application database.

Is there a way to do that?

Here’s what I have come up with so far:

  1. Dynamically set the onclick attribute in the DOM element (which corresponds to the Send button. So far I have been able to do that using the browser development tools (e.g. F12 in IE9) but not in code; it could be tricky since the dialog doesn’t exist at load time). Unfortunately I haven’t been able to define a Javascript function that was in the right scope (I thought there was only a global scope) for the onclick callback to find it.

  2. Construct the Facebook Send dialog from more elementary building block (e.g., friend picker, send method invocation) so I ‘own’ the click event.

  3. Clone the FB.ui() code and modify it to include additional parameters when calling the redirect url.

  4. Require the user to include me in the To list (really only last resort), or default the ‘to’ field to the application’s user id.

Finally, I expect to be able to call my web service from Javascript to record the message details in my application database.

  • 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-24T23:39:18+00:00Added an answer on May 24, 2026 at 11:39 pm

    I’m pretty sure this is not available via the API by design. The Send button operates in an iframe so browser security will prevent you from accessing its internal state via Javascript.

    Some other methods (such as using FB.ui dialogs to post to the user’s wall) provide a post ID in the callback and you can check this in the Graph API, but the Send button doesn’t return anything like this.

    For the Send button you can subscribe to the message.send event in the Javascript SDK and receive a callback with the URL which was sent, but not who it was sent to. ( https://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/ – the event itself isn’t currently listed there, but does exist)

    I can’t think of why you’d want to do this type of tracking, it seems like a use-case with very few policy compliant applications.

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

Sidebar

Related Questions

I am writing a Facebook application that would use a Postgres DB along with
how to develop new facebook application (login , add photos ) using the api
I am implemeting a facebook application in rails using facebooker plugin, therefore it is
I'm using a Facebook application that has a rich set of information that I'd
I've developed a Facebook application using the Facebook C# SDK. Interestingly, whenever the user
Does anyone have experience writing a Facebook application using GWT with GAE? I'm new
I want to connect to a my facebook application using the facebook java api
I'm using facebook connect to let users login my application easy. It works well,
I am implementing a Facebook application and using AJAX/JSON . However the JSON structures
I'm developing a Facebook application using their Graph API. I have previously developed an

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.