I still had the error “String could not be parsed as XML”, even with public albums. After investigating the issue, I found out that the function file_get_contents do not work with https.
I have solved the issue by changing the file_get_contents functions to a cURL alternative:
see: https://stackoverflow.com/questions/3979802/alternative-to-file-get-contents