Added error handling for permissions issues when retrieving friends_photos.