Skip to main content

social share is package for share contents on social media networks.

Project description

#SocialShare

OverView
=====================================================================================
Socialshare provide a mechanism for share a contents on social media’s


Dependencies
======================================================================================

Twitter support Depends on Twython
Access Token for the users.

Installation
======================================================================================

From pypi:
==========

Pip install socialshare or easy_install socialshare
From github:
==========

Clone : https://github.com/renjith-tring/socialshare

Configuration in Django projects:
================================



Settings.py
===========

Installed apps:

INSTALLED_APPS = (
'Socialshare',
)


Views.py
=============
From socialshare.share import *
[ linkedin_share, facebook_share, google_share , twitter_share ]

Facebook Share :
===============
response = facebook_share(params=None,access_token=None)

Params
1 . params = {'message':'your own message','link':'image link[make sure the url]','caption':'Caption', 'description':'Description', 'created_time'://current date}

2. Access_token = “ user accesstoken “
3 . response in json format


Linkedin Share
===============

response = linkedin_share(params=None,access_token=None)

Params
1. params = {'comment':comment,'content': {'title': title,'submitted-url':submitted_url, 'submitted-image-url':image_url,'description': description,},'visibility': {'code': 'anyone'}}
2 . access_token = “user token “

Google Plus Share
=================

Google is not providing stream api for share the contents , so here we are passing in the url for shared contents , then it will pop up in google plus comment window [ http://www.awesomescreenshot.com/image/1085814/ade4b9f86665dec52abe88eb10912a4e ] , then user can enter comments and publish in their account .

google_share(share_url=None)

Params
1 . share_url = “valid url “

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

socialshare-0.1.3.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file socialshare-0.1.3.tar.gz.

File metadata

  • Download URL: socialshare-0.1.3.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for socialshare-0.1.3.tar.gz
Algorithm Hash digest
SHA256 79c9ded4ca0a95cd2090aa291b758596558cc6843461c80a0eb4903594a06a18
MD5 a2def6c70b4700f5525eecf1f88edc37
BLAKE2b-256 f896631792573f61bae0fc8135e848fd954f55c4fcd7177577f16d2934c280d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page