iOS

iOS Twitter and Facebook

iOS Twitter and Facebook

In iOS 5.0, Twitter was integrated, and in iOS 6.0, Facebook was integrated. Our lesson focuses on leveraging Apple's classes, with iOS 5.0 and iOS 6.0 as deployment targets for Twitter and other social networking platforms.

Let's have a look at how to do it:

Step 1: Make a straightforward view-based application

Step 2: Choose your project file, then targets, and finally frameworks, then add Social.framework and Accounts.framework

Step 3: Create ibActions for a button named twitterPost

Step 4: ViewController.h should be updated as follows:

Step 5: ViewController.m should be updated as follows:


Output

You receive the following output when you click twitterPost:


Top course recommendations for you

    Fibonacci Series in Java
    2 hrs
    Beginner
    2.4K+ Learners
    4.38  (48)
    Priority Queue in C++
    1 hrs
    Beginner
    1.9K+ Learners
    4.32  (84)
    Introduction to MATLAB
    2 hrs
    Beginner
    18.1K+ Learners
    4.51  (1034)
    Packages in Python
    1 hrs
    Beginner
    5.8K+ Learners
    4.41  (221)
    Palindrome in Python
    2 hrs
    Beginner
    2.4K+ Learners
    4.69  (62)
    Python Basic Programs
    2 hrs
    Beginner
    33.2K+ Learners
    4.51  (1381)
    Ecommerce Website with HTML & CSS
    3 hrs
    Intermediate
    21.4K+ Learners
    4.57  (625)
    Oracle SQL
    4 hrs
    Beginner
    30.1K+ Learners
    4.58  (1355)
    Java Basic Programs
    2 hrs
    Beginner
    31.8K+ Learners
    4.48  (812)