IOS

Facebook and Twitter Sharing in iOS application using Social Framework

If you are working on iOS app development, then these days, everyone prefers to implement the social network sharing features like Twitter and Facebook sharing. If implemented, then this will add value to your iOS app and boost its popularity with Facebook and Twitter sharing support.

Let’s start to learn how you can integrate Facebook and Twitter sharing using Social framework.

Create class named SocialSharingVC with XIB named SocialSharingView Add two buttons in SocialSharingView named btnFacebookSharing and btnTwitterSharing and also define action events for both buttons btnFacebookSharing_Clicked and btnTwitterSharing_Clicked.

The social framework is not included when you create the new xCode project. So add Social.framework in the project.
Below is the final code for the SocialSharingVC.h class.