The Social Share Code Libraries project provides source code libraries for writing code that uses sharing on social-media.
All code is released under the permissive BSD-3-Clause License, so you should be able to use it in any of your projects, even if they are not permissively licensed like the BSD-3-Clause License.
This is a sub-project of Social Share URL's, a project for documenting the sharing URL API's of third-party, social-media websites. Check out more about us here :
https://github.com/bradvin/social-share-urls
https://github.com/bradvin/social-share-urls/tree/master/code/
Online Demo
:
- Peter Kropotkin : Mutual Aid : A Factor of Evolution
- EarthFluent.com : Learn German Online
- List Keywords : Finding and Listing Your Keywords For You
Code Sandbox
:
Sample Use
:
var sm:SocialMedia = SocialMedia(
url: "http%3A%2F%2Fwww.earthfluent.com%2F",
title: "EarthFluent",
image: "",
desc: "",
appid: "",
redirecturl: "",
via: "",
hash_tags: "",
provider: "",
language: "",
user_id: "",
category: "",
phone_number: "",
email_address: "",
cc_email_address: "",
bcc_email_address: ""
)
for index in 0..<sm.servicesSortedByPopularity.count{
var service = sm.servicesSortedByPopularity[index];
var url = sm.urls[index];
print(service + " : " + url);
}
Library Files
: