Code now compiles, all Twitter and twitter variables/files replaced with LinkedIn and linkedin respectively.