updated code. can now post photos to facebook.