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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:27:03+00:00 2026-05-18T05:27:03+00:00

I used the old rest api for showing the Permission Dialog in Facebook before.

  • 0

I used the old rest api for showing the Permission Dialog in Facebook before.
Now, with the new graph API, what can I do? (I’m in IFrame Apps).

I know that I can cheat and popup the permission in a seperate window:

FB.login(function(response) {
                  if (response.session) {
                    if (response.perms) {
                      // user is logged in and granted some permissions.
                      // perms is a comma separated list of granted permissions
                    } else {
                      // user is logged in, but did not grant any permissions
                    }
                  } else {
                    // user is not logged in
                  }
                }, {perms:'offline_access'});

like that.. call the FB.login again (let say I want people to click on a different button and trigger the extended permisison dialog)

However,it looks ugly,and it doesn’t look like a dialog.

Is there a way to generate the dialog? I try to figure out whether FB.ui can help but there is only little information about that.

In addition, I don’t think the ‘response’ callback ever execute. Neither I click “Don’t allow” or “allow”, won’t trigger any call back. any idea?

hihih..anyone can help me?

  • 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-18T05:27:04+00:00Added an answer on May 18, 2026 at 5:27 am

    Finally. find out the solution from another website.
    first. after FB.init( … ); do that:

    FB.provide("UIServer.Methods",
        { 'permissions.request' : { size : {width: 575, height: 300}, 
        url: 'connect/uiserver.php',
        transform : FB.UIServer.genericTransform }
        } );
    

    Then, whenever you need to call the permssion dialog, do that:

    FB.ui({method: "permissions.request", "perms": 'email,offline_access'}, 
        callBack);
    

    It took me so long to figure out by looking at the FB object and find out there is UIServer with permissions.request then from that, I keep searching and find this solution. and FB.ui talks nothing about it.. and FB.provide is not documented. THANKS facebook.

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

Sidebar

Related Questions

I'm a C# developer and I'm used to the good old Environment.CurrentUser . Now
I used to develop a few FB apps in the past (using the old
I'm used to the old Winforms way of doing things. Apparently WPF ListViews are
I used the following sed command to find and replace an old string with
I have a piece of old code that used a query using WQL to
For the old version xcode/ios, I used: appDelegate =(AppDelegate *)[[UIApplication sharedApplication] delegate]; to access
i have an old codebase here, where they used protected member variables. Whether or
I used the phonegap website to create an IPA file. Now I want to
I'm in the final stages of converting our site over to Graph API from
I'm used to old-style C and and have just recently started to explore c99

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.