Facebook Developers
DocsToolsSupportNewsApps
Log In
  • Social Plugins
  • Facebook Login
  • Open Graph
  • Facebook APIs
  • Games
  • Payments
  • App Center
  • Promote Your App
  • iOS
    • Getting Started
    • Concepts
    • Reference
  • Android
  • JavaScript
  • PHP
  • More SDKs
  • Class References
    • FBCacheDescriptor
    • FBFriendPickerViewController
    • FBGraphObject
    • FBLoginView
    • FBPlacePickerViewController
    • FBProfilePictureView
    • FBRequest
    • FBRequestConnection
    • FBSession
    • FBSessionTokenCachingStrategy
    • FBTestSession
    • FBUserSettingsViewController
    • FBViewController
  • Protocol References
    • FBFriendPickerDelegate
    • FBGraphLocation
    • FBGraphObject
    • FBGraphPlace
    • FBGraphUser
    • FBLoginViewDelegate
    • FBOpenGraphAction
    • FBPlacePickerDelegate
    • FBUserSettingsDelegate
    • FBViewControllerDelegate
  • Other References
    • FBError
    • FBSettings

FBGraphLocation

SDK Reference › iOS SDK › FBGraphLocation
FBGraphLocation
Extends Protocol: FBGraphObject
Declared in: FBGraphLocation.h
Overview

The FBGraphLocation protocol enables typed access to the location property of a Facebook place object.

Discussion

The FBGraphLocation protocol represents the most commonly used properties of a location object. It may be used to access an NSDictionary object that has been wrapped with an FBGraphObject facade.

Tasks
city property
country property
latitude property
longitude property
state property
street property
zip property
Properties
city

Typed access to a location's city.

@property (retain, nonatomic) NSString *city;
Declared In
FBGraphLocation.h
country

Typed access to a location's country.

@property (retain, nonatomic) NSString *country;
Declared In
FBGraphLocation.h
latitude

Typed access to a location's latitude.

@property (retain, nonatomic) NSNumber *latitude;
Declared In
FBGraphLocation.h
longitude

Typed access to a location's longitude.

@property (retain, nonatomic) NSNumber *longitude;
Declared In
FBGraphLocation.h
state

Typed access to a location's state.

@property (retain, nonatomic) NSString *state;
Declared In
FBGraphLocation.h
street

Typed access to a location's street.

@property (retain, nonatomic) NSString *street;
Declared In
FBGraphLocation.h
zip

Typed access to a location's zip code.

@property (retain, nonatomic) NSString *zip;
Declared In
FBGraphLocation.h

Last Updated: November 19, 2012
Facebook © 2013 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy