Facebook Developers
DocsToolsSupportNewsApps
Log In
  • Social Plugins
  • Facebook Login
  • Open Graph
  • Facebook APIs
  • Games
  • Media
  • Payments
  • App Center
  • Promote Your App
  • iOS
    • Getting Started
    • Concepts
    • Reference
  • Android
  • Web
  • Technology Partners
  • 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

FBPlacePickerDelegate

SDK Reference › iOS SDK › FBPlacePickerDelegate
FBPlacePickerDelegate
Extends Protocol: FBViewControllerDelegate
Declared in: FBPlacePickerDelegate.h
Overview

The FBPlacePickerDelegate protocol defines the methods used to receive event notifications and allow for deeper control of the FBPlacePickerViewController view.

Tasks
- placePickerViewController:handleError:
- placePickerViewController:shouldIncludePlace:
- placePickerViewControllerDataDidChange:
- placePickerViewControllerSelectionDidChange:
Instance Methods
placePickerViewController:handleError:

Called if there is a communication error.

- (void)placePickerViewController:(FBPlacePickerViewController *)placePicker handleError:(NSError *)error;
Parameter
placePicker

The place picker view controller that encountered the error.

error

An error object containing details of the error.

Declared In
FBPlacePickerDelegate.h
placePickerViewController:shouldIncludePlace:

Asks the delegate whether to include a place in the list.

- (BOOL)placePickerViewController:(FBPlacePickerViewController *)placePicker shouldIncludePlace:(id <FBGraphPlace>)place;
Parameter
placePicker

The place picker view controller that is requesting this information.

place

An object representing the place.

Discussion

This can be used to implement a search bar that filters the places list.

Declared In
FBPlacePickerDelegate.h
placePickerViewControllerDataDidChange:

Tells the delegate that data has been loaded.

- (void)placePickerViewControllerDataDidChange:(FBPlacePickerViewController *)placePicker;
Parameter
placePicker

The place picker view controller whose data changed.

Discussion

The FBPlacePickerViewController object's tableView property is automatically reloaded when this happens. However, if another table view, for example the UISearchBar is showing data, then it may also need to be reloaded.

Declared In
FBPlacePickerDelegate.h
placePickerViewControllerSelectionDidChange:

Tells the delegate that the selection has changed.

- (void)placePickerViewControllerSelectionDidChange:(FBPlacePickerViewController *)placePicker;
Parameter
placePicker

The place picker view controller whose selection changed.

Declared In
FBPlacePickerDelegate.h

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