问题
I'm using the Javascript SDK and wanted to upload an image and tag friends at the same time. Yesterday I got everything working, uploading an image and specifying tags for 9 friends, but when I tried it again today it was broken, the image would still upload and I also get an id and post_id in the response, but tags wouldn't be added anymore. I stripped out all of the unnecessary code and boiled it down to the very basics (see below), without success. However making a second call to /photoId/tags with to/x/y parameters still works. so my now my questions:
- did anything in the API change ?
- did my appId or url get disabled for this kind of tagging ? If so, how can I check/restore ?
can anyone confirm this is still working ?
FB.api("/me/photos","post",{url:"http://fakeurl.com/image.jpg",tags:[{tag_uid:"23fake42425223",x:50,y:50}]},function(response) {console.log(response);});
I'm pretty sure the code is alright (correct me if I'm wrong), because when I change any of the parameters i'll get an error response (e.g. I changed the "tag_uid" to "to" results in "(#100) Invalid keys "to... found in param "tags"."). I also tried tag_text, which also uploads the image, but no tag seen at all. Thanks a lot!
来源:https://stackoverflow.com/questions/12387764/facebook-javascript-photo-uploadtagging-api-changed-last-night-2012-sept-12th