adding social app handling to API