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  (60)
    Priority Queue in C++
    1 hrs
    Beginner
    2.2K+ Learners
    4.31  (98)
    Introduction to MATLAB
    2 hrs
    Beginner
    22K+ Learners
    4.42  (1650)
    Packages in Python
    1 hrs
    Beginner
    7.2K+ Learners
    4.32  (539)
    Palindrome in Python
    2 hrs
    Beginner
    2.9K+ Learners
    4.64  (85)
    Python Basic Programs
    2 hrs
    Beginner
    42.6K+ Learners
    4.46  (2300)
    Ecommerce Website with HTML & CSS
    3 hrs
    Intermediate
    26.1K+ Learners
    4.55  (1073)
    Oracle SQL
    4 hrs
    Beginner
    40.2K+ Learners
    4.54  (2581)
    Java Basic Programs
    2 hrs
    Beginner
    35K+ Learners
    4.45  (1129)