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.8K+ Learners
    4.39  (69)
    Priority Queue in C++
    1 hrs
    Beginner
    2.2K+ Learners
    4.38  (110)
    Introduction to MATLAB
    2 hrs
    Beginner
    22.5K+ Learners
    4.41  (1798)
    Packages in Python
    1 hrs
    Beginner
    7.4K+ Learners
    4.33  (568)
    Palindrome in Python
    2 hrs
    Beginner
    2.9K+ Learners
    4.65  (92)
    Python Basic Programs
    2 hrs
    Beginner
    43.9K+ Learners
    4.43  (2593)
    Ecommerce Website with HTML & CSS
    3 hrs
    Intermediate
    26.8K+ Learners
    4.53  (1241)
    Oracle SQL
    4 hrs
    Beginner
    41.8K+ Learners
    4.55  (3036)
    Java Basic Programs
    2 hrs
    Beginner
    35.4K+ Learners
    4.45  (1194)