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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:42:28+00:00 2026-05-26T23:42:28+00:00

i download the code for facebook integration…and my application work fine.. i just wants

  • 0

i download the code for facebook integration…and my application work fine..

i just wants to know that what is difference between session and _session

and also loginDialog and _loginDialog

thanks for help…:)

@interface MyFbViewController :UIViewController <FBSessionDelegate, FBRequestDelegate>
{


FBSession* _session;

FBLoginDialog *_loginDialog;

}

@property (nonatomic, retain) FBSession *session;

@property (nonatomic, retain) FBLoginDialog *loginDialog;


@end

in MyFbViewController.m file………

@synthesize session = _session;

@synthesize loginDialog = _loginDialog;
  • 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-26T23:42:29+00:00Added an answer on May 26, 2026 at 11:42 pm

    _session and _loginDialog are instance variables of the class. As such you are completely responsible for memory management (i.e. retaining and releasing) those variables as you would be with any other variable.

    The properties session and loginDialog in combination with the synthesize statement generate two class properties, which in turn are only special selectors.

    @synthesize session = _session; basically generates two methods, - (FBSession *)session; and - (void)setSession:(FBSession *)newSession; which are invoked whenever you use the dot-notation for object properties (i.e. object.session). You could write them on your own and leave out the synthesize but that is seldomly done because you again would be responsible for memory management.

    As these properties are retain properties, the automatically generated methods handle the necessary retain/release stuff and could look something like this:

    - (FBSession *)session
    {
        return _session;
    }
    
    - (void)setSession:(FBSession *)newSession
    {
        if (newSession != _session)
        {
            [_session release];
            [newSession retain];
            _session = newSession;
        }
    }
    

    Which frees you from the burden of memory management as long as you set the property to nil when done (as this will release any existing object).

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

Sidebar

Related Questions

I'm trying to test some streaming file upload/download code that I've just written, but
Does any one know from where can I download source code for Cassini. I
Is it possible to access or download my code that is running on Google
Sorry for maybe this is stupid question, I just want download source code form
i have download code from http://svn.facebook.com/svnroot/platform/clients/packages/fbconnect-iphone.zip and i done all the thing according to
I'm trying to code a native android application that takes certain parts of a
I've got some code that does a bunch of set-up, then posts to Facebook
The app store review guidelines states: Apps that download code in any way or
I need to download the Facebook API from GitHub . Normally, I just click
I am trying to download Facebook profile picture for Facebook application. For this, I'm

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.