This is a simple Python 2.7 script that uses Facebook's Graph Video API to upload videos to Facebook with dedupe functionality via sqlite and PeeWee.
This script is really intended to be used in a digital publishing environment wherein video and their assoiated metadata need to be uploaded to a brand Facebook page in an automated fashion via cron job (i.e. this is really a server-side script).
In order to really use Facebook's Graph Video API effectively, you need to simplfy the oAuth process. I strongly advise that you obtain permanent page access tokens by following these steps:
http://stackoverflow.com/questions/17197970/facebook-permanent-page-access-token
NOTE:
FacebookVideoUploader.py makes the required multiple calls to Brightcove's CMS API to pull video assets by tag.
As an alternative if you're not using Brightcove, FacebookVideoUploader_02.py is intended to parse any MRSS or JSON feed by tag, with associated video metadata and source URL, for upload to Facebook.