You are previewing Integrating Facebook iOS SDK with Your Application.
O'Reilly logo
Integrating Facebook iOS SDK with Your Application

Book Description

From setting up a Facebook developer account to embedding the platform’s iOS SDK features in your application, this book shows you how to make your apps more social and potentially profitable.

  • Effectively promote your Social Applications through Facebook

  • Invite your friends to use your application

  • Learn and understand Facebook iOS features with hands-on examples

  • In Detail

    Facebook provides an iOS SDK to third party developers which allows them to develop iOS applications. These applications are then made available on the app store, from which the developers are entitled to 70 percent of sales revenue. Embedding these Facebook iOS SDK features takes applications to the next level of user engagement.

    Starting with the process of setting up a Facebook developer account, we will use hands-on examples to walk you through developing and integrating social element like inviting others to use your software. This book focuses on detailing and documenting the process of developing an actual application. Through the course of the book, you will learn to use iOS SDK features in your code flawlessly.

    Aiming to simplify the process of embedding Facebook iOS SDK features in your app, each chapter focuses on a new feature, and as you move through the chapters, you will find yourself embedding more functionality in your application. We begin with the creation of a new Facebook App ID before creating and setting up a project. Through the course of the book, you will use social platforms to authenticate users and fetch their social information to make your project more attractive and engaging. The book emphasizes on sharing functionalities, such as inviting friends through Facebook messages with the sole intention of making the app viral. By the end of the book, you will look at how to use the Facebook News Feed to make your app go viral. By the end of the book you will have built a powerful application using the world’s largest social media platform.

    Table of Contents

    1. Integrating Facebook iOS SDK with Your Application
      1. Table of Contents
      2. Integrating Facebook iOS SDK with Your Application
      3. Credits
      4. About the Author
      5. About the Reviewers
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. Introduction to the Facebook Platform
        1. Facebook Platform – features
          1. Social Graph
          2. Graph API
          3. Social Plugins
          4. Dialogs
          5. Authentication and permissions
        2. Functionality – storing and using data from the Platform
          1. Integration points
          2. Facebook App Portal
          3. Application permissions
        3. New features in Facebook iOS SDK 3.x
          1. Facebook integration in iOS 6
          2. Native UI controls
          3. Better session management
          4. Mobile analytics
        4. Platform references
        5. Summary
      9. 2. Creating a New iOS Social Project
        1. Creating a Facebook App ID
        2. Downloading the Facebook iOS SDK
        3. Creating a new XCode project
        4. Importing the Facebook SDK into the application project
        5. Getting familiar with Storyboard to build a better interface
        6. Summary
      10. 3. Connecting to a Facebook User Account
        1. Login flow
        2. Creating the Login interface
          1. Creating the Facebook view controller
        3. Login delegates
        4. Logout flow
        5. Summary
      11. 4. Displaying User Profile
        1. Understanding Facebook Platform
        2. Setting up the user profile interface
        3. Fetching a user's information
        4. Creating the friends view interface
        5. Creating the UI
          1. Displaying FBFriendPickerViewController
          2. Customizing the friends list using a search bar
        6. Summary
      12. 5. Posting on Walls
        1. Creating the Post Dialog interface
          1. Creating the book model
          2. Passing information between controllers
          3. Feed Share Dialogs
          4. Upload action permission
        2. Facebook Web Dialogs
          1. Publishing on a friend's wall
        3. Facebook Native Dialogs
        4. Summary
      13. 6. Facebook Graph API
        1. Available features through Graph API
        2. Graph API Explorer
        3. Using the Graph API with Facebook iOS SDK
          1. Fetching user information
          2. Fetching a user's friends
          3. Fetching a user's photos
          4. Posting status updates
          5. Posting a new photo
        4. Summary
      14. 7. Distributing Your Social Application
        1. Social channels
          1. App Center
          2. Send to Mobile
          3. Inviting friends
        2. Summary
      15. 8. Promoting Your Social Application
        1. Getting to know your users
        2. Growing your audience
        3. Mobile ads
        4. Summary
      16. Index