SocialPET improves few-shot stance detection by incorporating social network structure into pattern generation, outperforming baseline models.