{"id":1898,"url":"https://github.com/darkcl/SocialLib","last_synced_at":"2025-08-02T05:33:15.873Z","repository":{"id":56922173,"uuid":"43242390","full_name":"darkcl/SocialLib","owner":"darkcl","description":"SocialLib handles sharing message to multiple social media. ","archived":false,"fork":false,"pushed_at":"2016-02-25T14:52:38.000Z","size":8303,"stargazers_count":13,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-26T23:29:44.951Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darkcl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-27T10:20:02.000Z","updated_at":"2021-01-03T19:04:29.000Z","dependencies_parsed_at":"2022-08-21T04:50:21.952Z","dependency_job_id":null,"html_url":"https://github.com/darkcl/SocialLib","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/darkcl/SocialLib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkcl%2FSocialLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkcl%2FSocialLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkcl%2FSocialLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkcl%2FSocialLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkcl","download_url":"https://codeload.github.com/darkcl/SocialLib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkcl%2FSocialLib/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268339405,"owners_count":24234544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:15:58.472Z","updated_at":"2025-08-02T05:33:13.485Z","avatar_url":"https://github.com/darkcl.png","language":"Objective-C","funding_links":[],"categories":["SDK","Unofficial"],"sub_categories":["Unofficial","Other free courses"],"readme":"# SocialLib\n\n[![CI Status](https://travis-ci.org/darkcl/SocialLib.svg?branch=master)](https://travis-ci.org/darkcl/SocialLib)\n[![Version](https://img.shields.io/cocoapods/v/SocialLib.svg?style=flat)](http://cocoapods.org/pods/SocialLib)\n[![License](https://img.shields.io/cocoapods/l/SocialLib.svg?style=flat)](http://cocoapods.org/pods/SocialLib)\n[![Platform](https://img.shields.io/cocoapods/p/SocialLib.svg?style=flat)](http://cocoapods.org/pods/SocialLib)\n\n###What is  SocialLib?\nSocialLib is a library that aims to share information to different social media site without getting your code messy with different social media SDKs. \n\nSharing with SocialLib is simple, you can have the same modal to share to different social media.\n\nHere is an example for the same modal to share to Twitter and Facebook.\n\n`InfoModal.h`\n```objc\n#import \u003cFoundation/Foundation.h\u003e\n\n@interface InfoModal : NSObject \u003cSocialLibFacebookMessage, SocialLibTwitterMessage\u003e{\n    \n}\n\n@property (nonatomic, strong) NSString *infoTitle;\n@property (nonatomic, strong) NSString *infoContent;\n@property (nonatomic, strong) NSString *infoContentURL;\n@property (nonatomic, strong) NSArray *infoImages;\n@property (nonatomic, strong) NSString *infoThumbnailImageURL;\n@property (nonatomic, strong) NSString *infoVideoURL;\n```\n\n`InfoModal.m`\n```objc\n#import \"InfoModal.h\"\n\n\n@implementation InfoModal\n\n#pragma mark - SocialLibMessage\n- (NSString *)title{\n    return _infoTitle;\n}\n\n- (NSString *)content{\n    return _infoContent;\n}\n\n- (NSString *)contentURL{\n    return _infoContentURL;\n}\n\n- (NSArray *)images{\n    return _infoImages;\n}\n\n- (NSString *)thumbnailImageURL{\n    return _infoThumbnailImageURL;\n}\n\n- (NSString *)videoURL{\n    return _infoVideoURL;\n}\n\n- (NSString *)tweetContent{\n    return [NSString stringWithFormat:@\"%@ - %@ %@\",_infoTitle, _infoContent, _infoContentURL];\n}\n\n- (SocialLibTwitterMessageType)twitterMessageType{\n    return SocialLibTwitterMessageTypeText;\n}\n\n- (SocialLibFacebookMessageType)fbMessageType{\n    return SocialLibFacebookMessageTypeLink;\n}\n\n@end\n```\n\nTo share facebook use\n```objc\nInfoModal *info = [[InfoModal alloc] init];\ninfo.infoTitle = @\"SocialLib\";\ninfo.infoContent = @\"Share via SocialLib\";\ninfo.infoContentURL = @\"http://darkcl.github.io/SocialLib\";\n[SocialLib shareModal:info\n           toPlatform:kSocialLibPlatformFacebook\n              success:^(NSDictionary *message) {\n                  NSLog(@\"%@\", message);\n              }\n              failure:^(NSDictionary *message, NSError *error) {\n                  NSLog(@\"%@\", error);\n              }];\n```\n\nTo share twitter use\n```objc\nInfoModal *info = [[InfoModal alloc] init];\ninfo.infoTitle = @\"SocialLib\";\ninfo.infoContent = @\"Share via SocialLib\";\ninfo.infoContentURL = @\"http://darkcl.github.io/SocialLib\";\n[SocialLib shareModal:info\n           toPlatform:kSocialLibPlatformTwitter\n              success:^(NSDictionary *message) {\n                  NSLog(@\"%@\", message);\n              }\n              failure:^(NSDictionary *message, NSError *error) {\n                  NSLog(@\"%@\", error);\n              }];\n```\n\n## Installation\n\nSocialLib is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\nInstall all platform (Facebook, Twitter, Tumblr, Instagram, Weibo and Weixin)\n```ruby\npod 'SocialLib'\n```\n\nFor specific social platform, use subspec\n```ruby\npod 'SocialLib/Facebook'\npod 'SocialLib/Twitter'\npod 'SocialLib/Tumblr'\npod 'SocialLib/Instagram'\npod 'SocialLib/Weibo'\npod 'SocialLib/Weixin'\n```\n\n## Setup Guide\nYou can find setup guide in the [wiki](https://github.com/darkcl/SocialLib/wiki)\n\n## Usage\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n**Demo provided Facebook, Twitter and Tumblr api keys, Weibo and Weixin api keys are empty**\n\n## Author\n\nYeung Yiu Hung, hkclex@gmail.com\n\n## License\n\nSocialLib is available under the MIT license. See the LICENSE file for more info.\n\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/darkcl/sociallib/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkcl%2FSocialLib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkcl%2FSocialLib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkcl%2FSocialLib/lists"}