Anthony Albanese has been discussing Australia's social media laws with former Apple chief executive Tim Cook.