Automates sharing of video url on facebook wall when uploaded on Youtube. The application uses Python 3. But you can run with Python 2 as well.
##Installation##
git clone https://github.com/trishnaguha/AutoShare.git
cd AutoShare
##Usage##
- Get PlaylistId and API Key from Youtube and Access Token from Facebook.
- Add them to
Youtube_playlistId
,Youtube_api_key
andAccess_token
is settings.py python3 autoshare.py
###YouTube Settings###
- Go to Console developers google
- Create a new project and go to API manager.
- Make sure the status is ON for YouTube Data API v3.
- Select Credentials from left sidebar and generate API key.
- Resource for YouTube API doc
- Go to Api explorer for YouTube
- Fill
part
asContentDetails
andmine
astrue
. - Make sure the status is ON for OAuth 2.0 and grant permission for all scopes.
- Then click on Execute that will generate Response.
- Copy the
uploads
id which is theplaylistId
.
###Facebook Settings###
- Go to Developers facebook
- Get Access token from
Extended Permissions
selectingpublish_actions
and fromUser Data Permissions
selectinguser_posts
##Development Purpose
sudo dnf install python-virtualenv
virtualenv venv
source venv/bin/activate
git clone https://github.com/trishnaguha/AutoShare.git
cd AutoShare
python setup.py install
##Local Server Setup
chmod +x runserver.sh
./runserver.sh
This will launch the application on localhost:8000
Follow Installation and Usage for development