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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:40:00+00:00 2026-05-20T20:40:00+00:00

I am using JS-API to generate a dialogue which asks for permission to publish

  • 0

I am using JS-API to generate a dialogue which asks for permission to publish the status message generated by my Application. Given below is the screenshot of what I am talking about:

THE POP-UP which gets blocked by browsers

Here is the code:

FB.ui(
   {
     method: 'feed',
     name: 'Facebook Dialogs',
     link: 'http://developers.facebook.com/docs/reference/dialogs/',
     picture: 'http://fbrell.com/f8.jpg',
     caption: 'Reference Documentation',
     description: 'Dialogs provide a simple, consistent interface for applications to interface with users.',
     message: 'Facebook Dialogs are easy!'
   },
   function(response) {
     if (response && response.post_id) {
       alert('Post was published.');
     } else {
       alert('Post was not published.');
     }
   }
 );

I use the sample JS code as told in the documentation and it works well if pop-ups are not blocked in the browser settings. but without status message being displayed there’s no utility of the app!

Please help; I’m stuck at the last stage.

  • 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-20T20:40:01+00:00Added an answer on May 20, 2026 at 8:40 pm

    I don’t see why it’s bothering you. If the user is blocking FACEBOOK pop-up then it’s his loss!

    Anyway, if you really need to handle all cases, then you can choose a different way. Have a read of the Feed Dialog.

    What you could do is when you are done from the previous step you redirect your page to the Facebook feed method so it’ll open as a page:

    http://www.facebook.com/dialog/feed?
      app_id=123050457758183&
      link=http://developers.facebook.com/docs/reference/dialogs/&
      picture=http://fbrell.com/f8.jpg&
      name=Facebook%20Dialogs&
      caption=Reference%20Documentation&
      description=Dialogs%20provide%20a%20simple,%20consistent%20interface%20for%20applications%20to%20interact%20with%20users.&
      message=Facebook%20Dialogs%20are%20so%20easy!&
      redirect_uri=http://www.example.com/response
    

    The important part to change here is the app_id and redirect_uri, so your code would look like:

    ...
    previous code
    ...
    inside previous code success response
    ...
    var url = "http://www.facebook.com/dialog/feed?" +
                "app_id=" + YOUR_APP_ID + "&" +
                "link=http://developers.facebook.com/docs/reference/dialogs/&" +
                "picture=http://fbrell.com/f8.jpg&" +
                "name=Facebook%20Dialogs&" +
                "caption=Reference%20Documentation&" +
                "description=Dialogs%20provide%20a%20simple,%20consistent%20interface%20for%20applications%20to%20interact%20with%20users.&" +
                "message=Facebook%20Dialogs%20are%20so%20easy!&" +
                "redirect_uri=" + YOUR_REDIRECT_URI;
    top.location.href = url;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using an api which allows me to generate reports in PDF format.
I am using the JFreeChart API to generate some chart in my Java application.
I'm using the Google charts API to generate a pie chart in my Rails
I'm trying to send post using API feed. I set fields: message , link
I want to update Paypal Order status and add tracking number using API. but
I am using an API which has a limit on requests. The API response
I'm using Audiveris API to generate xml(MusicXML) file once the sheetmusic(e.g. pdf/img file) is
I would like to generate C wrappers over some C++ API using SWIG. From
I am trying to generate documentation of the Octave API using doxygen. However, doxygen
If two threads in a process generate a new GUID concurrently using .NET API

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.