Integration with Facebook
Integration of social sites in an app is very common nowadays. With the release of iOS 6, Apple has introduced a new framework for social media integration known as Social.framework
. This social framework allows developers to instantly integrate social networking services into applications such as Facebook and Twitter.
Getting ready
We will create an app to demonstrate social media integration. We will start by creating a new iOS app project.
- Open Xcode and go to File | New | File and select Single View Application by navigating to iOS | Application. In the popup, provide the product name Social Media Integration. It should look similar to the following screenshot:
- Click on Next and save the project. After creating the project, we need to add a
Social.framework
. To add this library, go to thetarget
action of the project and scroll down to Linked Frameworks and Libraries and click on the Add button and addSocial.framework
in our project.
How to do it...
Now our project...