You can use the facebook provided by the Python SDK to upload photos using the oauth key.
Once you get the oauth key, you can load the GraphAPI.put_object () image :
graph = facebook.GraphAPI(oauth_access_token)
photo = open("picture.jpg", "rb")
graph.put_object("me", "photos", message="You can put a caption here", source=photo.read())
photo.close()
source
share