javascript - Facebook JS SDK - Does photo album exist? - create album only once -


i've got flash app using js in html communicate facebook. want add photos single album so, know how detect if facebook photo album exists don't create again? can create photos , create albums. here's cut down of create code (it might help):

function myfb_createalbum()     {         var album_details = {             message: "i album desc - test 2",             name: "some name" };          fb.api('/me/albums', 'post', album_details,  function(response){...} 

with thanks

permissions required:

for fetching albums/photos: user_photos

for posting albums/photos: publish_stream


how detect if facebook photo album exists don't create again?

make get request /me/albums. you'll list of albums, see here

then can check whether or not album exists using album id

note: can save album id response when create album


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -