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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:13:10+00:00 2026-06-11T07:13:10+00:00

I implemented the Add Friend dialog on iPhone using the post on stackoverflow: Facebook

  • 0

I implemented the Add Friend dialog on iPhone using the post on stackoverflow:
Facebook friends dialog returns "Unknown method" error, it’s implemented for Android but easy to convert to iPhone.

It worked fine until a few days ago when it stopped working and now it’s throwing me an error:

An error occurred with HitMe. Please try again later.
API Error Code: 3
API Error Description: Unknown method
Error Message: This method isn’t supported for this display type

I tried to search in facebook roadmap: https://developers.facebook.com/roadmap/ but couldn’t find any mentioning of the change, did anyone experience this issue or know another way to implement the “Friend Request” dialog on iPhone?

This is the changes I made to the Facebook 2.0 sdk to implement the “Friend Request” dialog:

in dialog:andParams:andDelegate: method in Facebook.m I replaced the original code by the following code:

-(void)dialog:(NSString *)action
 andParams:(NSMutableDictionary *)params
 andDelegate:(id <FBDialogDelegate>)delegate {

[_fbDialog release];

NSString *dialogURL;

if ([action isEqualToString:kFriends]) 
{
    dialogURL = [kDialogBaseURLForFriends stringByAppendingString:action];
}
else 
{
    dialogURL = [kDialogBaseURL stringByAppendingString:action];
}

if ([action isEqualToString:kFriends])
{
    [params setObject:@"popup" forKey:@"display"];
}
else 
{
    [params setObject:@"touch" forKey:@"display"];
}

[params setObject:kSDKVersion forKey:@"sdk"];
[params setObject:kRedirectURL forKey:@"redirect_uri"];

if ([action isEqualToString:kLogin]) {
    [params setObject:@"user_agent" forKey:@"type"];
    _fbDialog = [[FBLoginDialog alloc] initWithURL:dialogURL loginParams:params delegate:self];
} else {
    [params setObject:_appId forKey:@"app_id"];
    if ([self isSessionValid]) {
        [params setValue:[self.accessToken stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]
                  forKey:@"access_token"];
        [self extendAccessTokenIfNeeded];
    }

    // by default we show dialogs, frictionless cases may have a hidden view
    BOOL invisible = NO;

    // frictionless handling for application requests
    if ([action isEqualToString:kApprequests]) {        
        // if frictionless requests are enabled
        if (self.isFrictionlessRequestsEnabled) {
            //  1. show the "Don't show this again for these friends" checkbox
            //  2. if the developer is sending a targeted request, then skip the loading screen
            [params setValue:@"1" forKey:@"frictionless"];  
            //  3. request the frictionless recipient list encoded in the success url
            [params setValue:@"1" forKey:@"get_frictionless_recipients"];
        }

        // set invisible if all recipients are enabled for frictionless requests
        id fbid = [params objectForKey:@"to"];
        if (fbid != nil) {
            // if value parses as a json array expression get the list that way
            SBJsonParser *parser = [[[SBJsonParser alloc] init] autorelease];
            id fbids = [parser objectWithString:fbid];
            if (![fbids isKindOfClass:[NSArray class]]) {
                // otherwise seperate by commas (handles the singleton case too)
                fbids = [fbid componentsSeparatedByString:@","];
            }                
            invisible = [self isFrictionlessEnabledForRecipients:fbids];             
        }
    }

    _fbDialog = [[FBDialog alloc] initWithURL:dialogURL
                                       params:params
                              isViewInvisible:invisible
                         frictionlessSettings:_frictionlessRequestSettings 
                                     delegate:delegate];
}

[_fbDialog show];

}

where kFriends is @”friends” and kDialogBaseURLForFriends is @”https://facebook.com/dialog/“

  • 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-11T07:13:12+00:00Added an answer on June 11, 2026 at 7:13 am

    I’m seeing the same problem here when using the Facebook Send Dialog (https://www.facebook.com/dialog/send?….) API calls.

    Calls that have been running fine for months in iOS and Android apps now fail with API Error Code: 3 like mentioned above.

    I’ve tried leaving out display=iframe altogether, or changing to other display types like popup etc. It still doesn’t work. The docs at http://developers.facebook.com/docs/reference/dialogs/ still mentions iOS and Android as valid use cases for these type of dialogs. Trying out the same URLs in a desktop browser works fine.

    Update: Found a workaround that works for Android at least. Simply change the useragent of the webview container:

    webView.getSettings().setUserAgentString("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/22.0.1207.1 Safari/537.1");
    

    This gets the Send Dialog working for me on Android again at least. It’s ugly but it works (for now).

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

Sidebar

Related Questions

So, I have implemented this method to add a footer to my table view:
I have implemented Add to Favourites functionality for my iPhone application. It works fine
I'm having an issue. I've implemented a PhaseListener, which is meant to add a
I implemented the Facebook registration on my website. Everything works fine except that suddenly
I have a C++ state machine implemented using the State design pattern. Each state
I am using the javax.xml.soap API ( javax.xml.soap.SOAPConnectionFactory , javax.xml.soap.SOAPConnection , and friends) to
I've just implemented ads into my app, and I want to add an option
I am using Ruby on Rails 3.0.9 and I am planning to add a
I'm trying to implement Google Friend Connect as a sign in solution. I've implemented
ok I have this (beginner again) . // ADD FRIEND TO FRIEND LIST Query<FriendList>

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.