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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:00:53+00:00 2026-05-15T04:00:53+00:00

I used to have an href in my website. When users clicked on it,

  • 0

I used to have an href in my website. When users clicked on it, a multi-friend selector showed so they could invite their friends to my website.
That was done using the following code:

 FB.ensureInit(function() {
        var dialog = new FB.UI.FBMLPopupDialog('XXXXXXX', '');
        var fbml = 'Multi-Friend-Selector FBML'
        dialog.setFBMLContent(fbml);
        dialog.setContentWidth(620);
        dialog.setContentHeight(570);
        dialog.show();
    });

Now, I’m using the new JavaScript SDK (http://connect.facebook.net/en_US/all.js), but the old methods are not present…
How can I do it with the new SDK?

  • 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-15T04:00:54+00:00Added an answer on May 15, 2026 at 4:00 am

    Yes, finally got the irritating box to resize from the original 964 pixels:

    For compatibility (let’s hope it will get fixed in the future, or documented better)
    I still say

    size:(width:600,height:500),
    

    but then I break out width and height as properties of parent object, so in the end use:

    size:(width:600,height:500),width:600,height:500, ...
    

    And now it’s also resizable with the JavaScript library of your choice, that is, here’s a sample with jQuery resizing:

    FB.ui({
        method: 'fbml.dialog',
        fbml: (
             '<div style="width:480px;border:1px black solid;">A small JavaScript library that allows you to harness ' +
             'the power of Facebook, bringing the user\'s identity, ' +
             'social graph and distribution power to your site.</div>'
           ),
        size: {width:640,height:480}, width:640, height:480
    });
    $(".FB_UI_Dialog").css('width', $(window).width()*0.8); // 80% of window width
    // I'm also sure you could stack this call if you wanted to
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used href link in the flexigrid rows. on Click it takes me
We have used Shibboleth to authenticate users. It works great. The issue is that
I have used this website for testing http://www.webpagetest.org and among some suggestions for optimization
I have used location.href to redirect next page, but now i want to back
I have an email digest that is sent daily to users of my website
I have used the silverlight control in CRM 2011.It also published on form but
I have used some jquery components in my web site, Suddenly i'm getting an
I have used a plugin that uses prototype js, it's working fine but the
I have used NSSets many times in my apps, but I have never created
I have used auto complete textbox previously. That auto complete works only when i

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.