#SocialShare
Socialshare provide a mechanism for share a contents on social media’s
Twitter support Depends on Twython Access Token for the users.
Pip install socialshare or easy_install socialshare
Clone : https://github.com/renjith-tring/socialshare
Installed apps:
INSTALLED_APPS = (
'Socialshare',
)
From socialshare.share import * [ linkedin_share, facebook_share, google_share , twitter_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}
- Access_token = “ user accesstoken “ 3 . response in json format
response = linkedin_share(params=None,access_token=None)
Params
- 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 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 “