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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:43:19+00:00 2026-06-18T03:43:19+00:00

Currently, our app posts to users’ friends’ walls via Graph API. However, Facebook is

  • 0

Currently, our app posts to users’ friends’ walls via Graph API. However, Facebook is deprecating this functionality so we are migrating to the Feed Dialog per Facebook’s recommendations (see the February 6, 2013 section at https://developers.facebook.com/roadmap/).

Now, we know we can specify the recipient as part of the Javascript SDK call (note FB.init() is called elsewhere earlier on the page):

<p><a onclick="launchFeedDialog(); return false">Testing the Feed Dialog</a></p>
<script>
function launchFeedDialog() {

    // calling the API ...
    var obj = {
      method: 'feed',
      to: 'RECIPIENT NAME', // Can specify recipient here
      link: 'http://example.com',
      name: 'Test post',
      description: 'Test description'
    };

    FB.ui(obj);
}
</script>

However, it does not seem like the user can modify the recipient in the launched dialog. A screenshot of what I mean is at https://i.stack.imgur.com/opeHO.png.

Is there some way of invoking the Feed Dialog so that the user can change/add recipients, like in the Send Dialog?

The flow we are trying to implement (and the way it currently is) is:

  1. User clicks a button to launch the Feed dialog
  2. User fills in the Feed dialog (including recipient) and submits

Right now, we are stuck with this awkward flow:

  1. User fills out a custom control specifying the recipient
  2. User clicks a button to launch the Feed dialog
  3. User fills in the Feed dialog and submits
  • 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-18T03:43:21+00:00Added an answer on June 18, 2026 at 3:43 am

    OK, we found a workaround. The general idea:

    1. Display the Feed Dialog inline as an iframe (by specifying display=iframe)
    2. Create your own custom control for selecting a recipient Facebook username or id
    3. Reload the iframe asynchronously upon selecting a recipient or onblur, etc

    Some caveats/reasoning for above:

    • You can’t use the JS SDK because it will launch the iframe version of the Feed Dialog as a modal lightbox (rather than inline in your page flow)
    • You’ll need to implement a redirect page that does post processing, such as updating the state of the parent window, logging results, etc
    • For (2), the custom control can be as simple as a text input field, but you’ll probably want at least some sort of autocomplete. This is actually not too tricky, as you grab your user’s friend list with the https://graph.facebook.com/me/friends Graph API call.

    Here’s a basic example using a simple text input:

    <html>
    <head>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    </head>
    <body>
    <div>
      Recipient's FB username:
      <input type="text" id="fb-recipient" placeholder="Recipient's FB username"></input>
      <input type="submit" id="fb-recipient-submit" value="Pick" />
    </div>
      <iframe id="fb-feed-dialog" width="586" height="330" frameborder="0" allowfullscreen></iframe>
    <script>
      $('#fb-recipient-submit').click(function(e){
        e.preventDefault();
        var feedUrl = 'https://www.facebook.com/dialog/feed?';
        feedUrl += 'display=iframe';
        feedUrl += '&app_id=' + 'YOUR_APP_ID';
        feedUrl += '&access_token=' + 'ACCESS_TOKEN';
        feedUrl += '&link=' + 'SHARE_LINK';
        feedUrl += '&redirect_uri=' + 'REDIRECT_URI';
        feedUrl += '&to=' + $('#fb-recipient').val();
        $('#fb-feed-dialog').attr( 'src', feedUrl );
      });
    </script>
    </body>
    </html>
    

    You can find a screenshot of a slightly more fleshed out solution at: https://i.stack.imgur.com/1klYq.png

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

Sidebar

Related Questions

We have an app that currently installs itself into 'program files\our app', and it
Currently our dev team uses this pattern, but I can't help but wonder if
Currently on our system, when a user contacts us, we reply via our admin
I currently have an iOS app that allows people to submit content to our
I have a Flex app that uploads files to our website. We're currently working
Our app uses the PHP- aswell as the JS-SDK of Facebook. We are able
We've been getting users to connect their Facebook accounts to our site for a
I've got an algorism that is calling the Graph API to grab the posts
The reason I'm asking this is that our app (The Elements) runs fine on
We are currently exploring OpenAM & Shibboleth . Our app is not built 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.