KahunaSocialMedia is written in Swift
To run the example project, clone the repo, and run pod install from the Example directory first.
KahunaSocialMedia is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'KahunaSocialMedia', :tag => '1.2.1'New development will happen exclusively on the master/Swift 3 branch. Note: You need to update your latest xcode name by Xcode.app and it should by in your Application folder
let socialHandler = SocialOperationHandler.sharedInstance
socialHandler.socialDelegate = self
socialHandler.initServerBaseURL(serverBaseURL: kServerBaseURL)socialHandler.isLoadFromServer = true (i.e. our server and false for social media server)Note: Add import KahunaSocialMedia into respected file
socialHandler.initAllTwitterKeys(twitterURL: kTwitterURL, tweetAccessToken: kTweetAccessToken, tweetSecretKey: kTweetAccessTokenSecret, tweetConsumerKey: kTweetConsumerKey, tweetConsumerSecret: kTweetConsumerSecret, tweetOwnerSecretName: kTweetOwnerScreenName, tweetSlugName: kTweetSlugName)
socialHandler.getTwitterFeeds() socialHandler.initAllFacebookKeys(fbGraphURL: kFbGraphURL, fbFromName: kFbFromName, fbAppSecret: kFbAppSecret, fbAppID: kFbAppID)
socialHandler.getFacebookFeeds()socialHandler.initAllInstagramKeys(instaURL: instaURL)
socialHandler.getInstagramFeeds()Retrieve based on user channel
socialHandler.initAllYoutubeKeys(youTubeURL: kYoutubeUrl, youTubeAPIKey: kYoutubeAPIKey, youTubeUser: kYouTubeUser, videosCountForSubscriptionChannel: kVideosCountForSubscriptionChannel, countForSubscribedChannel: kCountForSubscribedChannel, userChannelId: kUserChannelId, userChannelOnly:true , isLoadFromSubscriptions: "false")
socialHandler.getYouTubeFeeds()Retrieve based on user subscriptions channel
socialHandler.initAllYoutubeKeys(youTubeURL: kYoutubeUrl, youTubeAPIKey: kYoutubeAPIKey, youTubeUser: kYouTubeUser, videosCountForSubscriptionChannel: kVideosCountForSubscriptionChannel, countForSubscribedChannel: kCountForSubscribedChannel, userChannelId: "", userChannelOnly:false , isLoadFromSubscriptions: isLoadFromSubscriptions)
socialHandler.getYouTubeFeeds()SocialOperationHandler.sharedInstance.fetchedInstagramFeedsFromDB()
SocialOperationHandler.sharedInstance.fetchedTwitterFeedsFromDB()
SocialOperationHandler.sharedInstance.fetchedFacebookFeedsFromDB()
SocialOperationHandler.sharedInstance.fetchedYoutubeFeedsFromDB()Note: KahunaSocialMedia requires Swift 3 (and Xcode 8) or greater. If you absolutely need compatibility with Swift 2.3 you can use the swift2.3 branch by adding following line to your Podfile with reference code in github: https://github.com/kahunasystems/KahunaSocialMedia
pod 'KahunaSocialMedia', '~> 0.1.15'siddharthchopra, siddharth.chopra@kahunasystems.com
KahunaSocialMedia is available under the MIT license. See the LICENSE file for more info.
