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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:26:06+00:00 2026-06-05T08:26:06+00:00

I am posting on the user`s wall using the FB Graph api my function

  • 0

I am posting on the user`s wall using the FB Graph api my function to post on wall is as follow:

 function PostToWall()
 {

      var mymessage = 'my message';
      var mypic = 'http://myapp/a.jpg';
      var mylink = 'http://www.myapp.com';
      var myname = 'myApp';
      var mydesc = 'my desc .';
      FB.api('/me/feed', 'post', { message: mymessage, picture: mypic, link: mylink, name: myname, description: mydesc }, function (response) {
            if (!response || response.error) {
                       alert(response.error.message);
            } else {
                        alert('Post ID: ' + response.id);
             }
      });
      // alert('Do you want to continue ? ');
 };

it works fine in crome but when i use the same in firefox it prompts Unknown error from alert(response.error.message); .and in the error console of firefox error is

Error: uncaught exception: [Exception... "prompt aborted by user"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: resource://gre/components/nsPrompter.js :: openTabPrompt :: line 468"  data: no]

I found the solution is the prompt user before the end of the function see the last line alert(‘Do you want to continue ? ‘); . When i write this alert it works fine in firefox also but i do not want to promt user for any message. what could be the problem and what would be the solution ?

I am using firefox 5.0 . and my operating system is windows 7.

PostOnWall function is called from another function which is as follow:

function f(){

     PostToWall();
    ...
    ...
    //code to click a submit button
}
  • 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-05T08:26:08+00:00Added an answer on June 5, 2026 at 8:26 am

    I have written code to click a submit button in a callback handler as follow:

    function PostToWallCallBackHandler(response) {
         if (!response || response.error) {
             alert(response.error.message);
         } else {
              document.getElementById('fbSubmit').click();
         }
     }
     function PostToWall(mymessage,mypic,mylink,myname,mydesc,callbackHandler) {
         FB.api('/me/feed', 'post', { message: mymessage, picture: mypic, link: mylink, name: myname, description: mydesc },function (response){callbackHandler(response);} );
     };
    

    it works fine with both crome and firefox,safari and IE 9.

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

Sidebar

Related Questions

I'm posting to a User's wall using the Post API . I want the
i am using the following url for posting message to user wall via my
Hi I am using the graph API to post to the the wall of
I am using fb_graph rails gem for posting a message to my user's Facebook
I am trying to make a post on another user's wall using another user
On the Facebook Graph API Post documentation the only way of posting images to
I am posting to a user's wall showing the standard dialog method: [facebook dialog:@feed
My following code for posting the UIImage to user's facebook wall is not working
I have an application using FeedbackPanel to show the user the results of posting
How would I go about posting a textarea form? <form method=post action=/user/test/shoutbox/add id=shoutPost class=clearit>

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.