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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T13:27:07+00:00 2026-06-02T13:27:07+00:00

I am try to use FB.login method from facebook javascript SDK .Everything is ok

  • 0

I am try to use FB.login method from facebook javascript SDK .Everything is ok on desktop browsers. But I have a problem with iPad and Android (motorola xoom).

unable to post message to recipient has origin www.facebook.com

how it can be resolved ?

I am trying to publish a message to the user wall

FB.login(function(response) {
           if (response.authResponse) {
             log("Info: login successfully");
             fbPublish();
           } else {
             log('User cancelled login or did not fully authorize.');
           }
         });

and when in fbPublish

function fbPublish(){
        log("Debug: fbPublish");
        FB.ui({
          method: "stream.publish",
          attachment: {
             name: uatitle.format(myChoice.question, myChoice.answer),
             href: document.location.href,
             media:[{"type":"image","src":"http:.....","href":document.location.href}]
          },
          action_links: [{ text: 'Vote yourself', href: document.location.href }]
         },
         function(response) {
           if (response && response.post_id) {
             log('Post was published.');
           } else {
             log('Post was not published.');
           }
         }
        );
    }

so , as I said on desktop everything ok / new post is published successfully . but I have an error on mobile devices

  • 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-02T13:27:08+00:00Added an answer on June 2, 2026 at 1:27 pm

    You should probably move away from stream.publish asap since it is going to be history and start using graph api for posting.

    Publishing looks something like this,

    var params = {};
    params['message'] = 'Message';
    params['name'] = 'Name';
    params['description'] = 'Description';
    params['link'] = 'http://apps.facebook.com/my-app/';
    params['picture'] = 'my-site';
    params['caption'] = 'Caption';
    
    FB.api('/me/feed', 'post', params, function(response) {
      if (!response || response.error) {
        alert('Error occured');
      } else {
        alert('Published to stream !');
      }
    });
    

    hope this helps

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

Sidebar

Related Questions

I try to use doctest from example from http://docs.python.org/library/doctest.html But when I run python
I'm try to use drupal open id module. When i used to login using
I try use string as a regular expression pattern but I've following errors PHP
I have recently updated the GWT SDK from 1.5.3 to 2.0.0 on a project.
I try use a integer array in java with the code below: public static
I try to use first time MongoDB instead of MySQL in my Rails 3.1
I try to use the domainpeople.com API and to do I need to use
I try to use the winDBG to debug a dump file. When I run
I try to use the following code: ArrayList<String> Map<String, String> Eclipse complains about both
I try to use PHPMailer to send registration, activation. etc mail to users: require(class.phpmailer.php);

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.