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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:37:30+00:00 2026-06-02T17:37:30+00:00

My app opens a share dialog when the user submits a form. The dialog

  • 0

My app opens a share dialog when the user submits a form. The dialog is called on document ready (jQuery) when the page refreshes after the submit.

The dialog box does open, but then closes a couple of second later. This pretty much renders the dialog useless. If you try and hit ‘share’ before it closes then it does work, but obviously most users aren’t going to try and race it.

The app can be found here: https://apps.facebook.com/topmoviesseen/

I have noticed that it can be tempremental, with the odd time seeing it work perfectly. Other times the dialog disappears only to reappear 4 or 5 seconds later. I would hazard a guess that there is some sort of JS affecting either the z-index or visibility of the box, but I cannot find anything.

Any help is hugely appreciated.

Code used to call dialog:

     $(document).ready(function(){
        // calling the API ...
        var obj = {
          method: 'feed',
          display: 'iframe',
          access_token: 'example',
          name: 'Top 100 Movies Seen',
          link: 'https://apps.facebook.com/topmoviesseen/',
          picture: 'https://mgnewmedia.com/topmovies/assets/images/for_stream.png',
          description: 'I have seen 62 of the top 100 movies of all time.  How many have you seen?',
          caption: 'Done any better?',
          message: '62 out of 100 isn\'t bad.'
        };

        FB.ui(obj, callback);
    });
  • 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-02T17:37:32+00:00Added an answer on June 2, 2026 at 5:37 pm

    you have to make sure your FB.ui is called after your FB.init is complete, so setting it in the window.fbAsycncInit listener will help:

    window.fbAsyncInit = function() { 
        FB.ui(...) 
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app that opens a non-modal form from the main form. The
I have an app that display's the current time when a page opens. I
Hi I am developing an android app in which if user opens the application
I have a SWT app that opens a OpenGL window (using the LWJGL library)
I have an ASP.NET MVC app that opens a Request view in a new
If you search for something that opens Preview.app (e.g. a PDF file) in Spotlight,
I have created a small application which opens,reads and creates Excel files. The app
I want to share my app details.I just done as same given in facebook
I am implementing a share button on my facebook app ( I don't wanna
Our Swing application doesn't limit the number of application instance user opens that is

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.