adding fb uploading logic with datauri