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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:11:09+00:00 2026-05-24T11:11:09+00:00

im using the js sdk to post message to friends wall from my website

  • 0

im using the js sdk to post message to friends wall from my website through an app i created in facebook. the code above is going well when i post to single wall. the problem i want to post to multiple walls the same message at the same time and without popup or dialog appearing. i know it must be done by looping but cant get it working .

my code is

 var publish =
            {
                method: 'stream.publish',
                // display: 'popup',


                attachment: 
                {
                    name: 'name' ,
                    caption: 'www.caption.com'  ,
                    description: ('description'),
    href: 'url',
                    media: [
                  {
                    type: 'image',
           href: 'url',
                    src: 'url'
                  }
                ]                   
                }
            };

         publish.target_id =id1;
         FB.ui(publish);
         publish.target_id = id2;
         FB.ui(publish);

            return false;

        }

any kind of help will be apreciated.

thanks

  • 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-24T11:11:10+00:00Added an answer on May 24, 2026 at 11:11 am

    Due to: http://developers.facebook.com/policy/

    5. You must not provide users with the option to publish more than one Stream story at a time.
    

    You should avoid to post same message to multiple walls the same time.

    edit:

    But if you really wan’t to do it:
    You should not use Fb.ui(), that is used for Facebook Dialogs.

    Instead you may use:

    var body = 'Reading JS SDK documentation';
    FB.api('/me/feed', 'post', { message: body }, function(response) {
      if (!response || response.error) {
        alert('Error occured');
      } else {
        alert('Post ID: ' + response.id);
      }
    });
    

    So, you just have to loop your UserIDs, and replace the “me” with the user_id.

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

Sidebar

Related Questions

I want to post a message on my friends wall using facebook sdk 3.0.
I'm using the Facebook iOS SDK to post videos from my app to the
Is it possible to post to a friends wall/timeline in facebook using an app
I'm using android-facebook-sdk and trying to post to user's wall. Here is my code:
I'm using Facebook SDK and I want to post message on my wall. It's
I have been using the Facebook Javascript SDK to post content from a CMS
i want post a message on a facebook wall, i integrated facebook sdk in
I am trying to post a message to my wall on facebook using Android
Trying to post a status update using facebook php sdk. Code posted below. As
I'm using facebook-android-sdk to post messages to my wall. The following request: Bundle params

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.