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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:58:16+00:00 2026-06-11T04:58:16+00:00

My goal is to make an apprequest button in my app that invites friends.

  • 0

My goal is to make an apprequest button in my app that invites friends.

The problem is that it asks me to log-in. This would not normally be a problem but in this context, the users have already input their login information to facebook in order to perform another feature within the app. That feature was written by somebody else who is not currently available.

What ends up happening is that the user has to log-in twice. Once to use the other person’s feature, once to use the apprequest dialog. I need to somehow share the credentials/authorization/session such that I do not prompt the user to login twice.

I don’t see any parameters to be passed in the standard app request dialog code to pre-authorize the attempt. I assume there’s something I can do with the Facebook object. Also, I’m very new to Objective C so my understanding of the delegate stuff is really weak. I’ve been looking at it but I’ve no idea what kind of function the facebook object would want as a delegate. My understanding is that facebook can callback to the delegate, essentially giving a asynchronous ack or req or something of the sort. But how am I supposed to know what kind of a delegate it expects? What parameters will it pass? Etc..

Anyways, here’s the very basic block of code for my app request. I’ve no idea where to go from here to prevent that login box from popping up twice.

Facebook *facebook = [[Facebook alloc] initWithAppId:<#(NSString *)#> andDelegate:<#(id<FBSessionDelegate>)#>]; 
// I realize I have to fill in my own AppID, which I have but I'm not entirely sure about the delegate

NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                               @"Come check out my app.",  @"message",
                               nil];

[self.facebook dialog:@"apprequests" andParams:params andDelegate:nil];
  • 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-11T04:58:18+00:00Added an answer on June 11, 2026 at 4:58 am

    You’ll need to set the accessToken and expirationDate properties on your Facebook instance in order to reuse the session created by the other feature. You can persist these values using NSUserDefaults or a similar mechanism.

    Note that there’s a new version of the Facebook SDK (3.0) that has much better automatic session handling. At some point in the future, it’s likely to be mandatory, so you should switch to it when you get the chance.

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

Sidebar

Related Questions

i have a problem with this class. the goal is to make the main
On this page: www.incfilms.net/services, my goal is to make that Advertising and Consulting picture
My goal is to make a flash/as3 program that would pull multiple sets of
My goal is to make a Button that has two Content values. Imagine a
Goal is to make a dialog that appears on menu_key pressed, but it keeps
My goal is to make a layout that is 200% width and height, with
My goal here is to make a button. I want the text to sit
Goal: Make a decorator which can modify the scope that it is used in.
Goal: Need to make selection of a single row included button in the listview.
My goal is to make a deletion function that uses LINQ to delete a

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.