Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- # -*- encoding: utf-8 -*-
- import requests
- access='paste your access token here'
- url='https://graph-video.facebook.com/100009336412443/videos?access_token='+str(access)
- path="/home/abc.mp4"
- files={'file':open(path,'rb')}
- flag=requests.post(url, files=files).text
- print flag
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement