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

  • Home
  • SEARCH
  • 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 1082691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:20:10+00:00 2026-05-16T22:20:10+00:00

Working on a project that has a website and a Facebook page. They both

  • 0

Working on a project that has a website and a Facebook page. They both reference the same SWF file and JS code that the SWF file uses to interact with the website/Facebook.

The custom Javascript action, which invokes the FB.ui() method for sharing, works so much in that the dialog/popup appears, however Facebook results with an error (“An error occurred. Please try again later.”). I get this error in all browsers.

Using a stream.share method works fine, however the stream.publish is giving me grief on the website. What’s notable is that the exact same code works within Facebook.

I am loading the FBJS SDK through the same methods on both sites (The Facebook page is an iframe that’s hosted on the same server) and also loading the scripts for the pages in the same order.


function connectFacebook(score) {
    // No score, share link
    if ( score == 0 ) {
        FB.ui({
            method:             'stream.share',
            u:                  'http://www.example.com/'
        });
    // Has score, publish to wall
    } else {
        FB.ui({
            method:             'stream.publish',
            message:            'I scored '+score+' at Game!',
            attachment: {
                name:           'Game',
                caption:        'Game caption',
                description:    'I scored '+score+'! Play and share to win the prize pack!',
                href:           'http://www.example.com/'
            },
            action_links: [
                { text: 'Game', href: 'http://www.example.com/' }
            ],
            user_message_prompt:    'Tell your friends about Game'
        },
        function(response) {
            if ( response && response.post_id ) {
                //alert( 'Post was published.' );
            } else {
                //alert( 'Post wasn\'t published.' );
            }
        });
    }
}
  • 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-16T22:20:10+00:00Added an answer on May 16, 2026 at 10:20 pm

    I found out what the error was. When connecting to the FBJS SDK on the website, I had a Page ID entered instead of an App ID.

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

Sidebar

Related Questions

I'm working on a project that has a website in Rails and a C#
I'm working on a project that has a lot of legacy C code. We've
I am working on a project that has grown to a decent size, and
I am working in a project that has two main parts: a class library
I'm working on a project that has a rich object model with various sets
I have been working on a project that has 2 interfaces - windows forms
I'm working on a project that currently has zero users but we would like
I'm working on a C#/ASP.NET project that has all the javascript files in a
I am working on implementing Zend Framework within an existing project that has a
Right now a project I'm working on has reached a level of complexity that

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.