Wednesday, 15 June 2011

Android facebook cannot change event's profile picture -



Android facebook cannot change event's profile picture -

i utilize old facebook android api creating events. work fine except when trying post profile picture event. facebook graph api says you can add together profile image event issuing http post request /event_id/picture create_event permission admin of event next parameter:

source multipart/form-data

returns true if request successful.

so used code:

bundle picture_parameters = new bundle(); picture_parameters.putstring("source", "https://foursquare.com/mapproxy/59.3280/18.0506/map.png"); response = utility.mfacebook.request(eventid + "/picture", picture_parameters, "post"); jsonobject myjson = util.parsejson(response); log.v("info", "!!!picture posted "+ response);

indeed returns true no image !!

the "source" needs actual image itself, not url. that's why content type multipart/form-data, rather string.

android facebook events

No comments:

Post a Comment