- Has anyone successfully uploaded a photo to the Facebook Graph API with Javascript?
- function saveImage() {
- FB.api("/me/albums", "post", {
- message:"album message",
- name: "name of album"
- }, function(response) {
- console.log(response.id) // id of album, yes?
- FB.api("/99999999/photos", 'post', {
- message:"hji",
- source: "@http://url/to/image/markz.png"
- }, function(response) {
- console.log(response)
- });
- });