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.7K+ Learners
    4.33  (58)
    Priority Queue in C++
    1 hrs
    Beginner
    2.2K+ Learners
    4.3  (97)
    Introduction to MATLAB
    2 hrs
    Beginner
    21.8K+ Learners
    4.42  (1620)
    Packages in Python
    1 hrs
    Beginner
    7.1K+ Learners
    4.38  (449)
    Palindrome in Python
    2 hrs
    Beginner
    2.8K+ Learners
    4.63  (83)
    Python Basic Programs
    2 hrs
    Beginner
    42.1K+ Learners
    4.47  (2203)
    Ecommerce Website with HTML & CSS
    3 hrs
    Intermediate
    25.9K+ Learners
    4.55  (1035)
    Oracle SQL
    4 hrs
    Beginner
    39.8K+ Learners
    4.55  (2480)
    Java Basic Programs
    2 hrs
    Beginner
    34.9K+ Learners
    4.45  (1105)