Have you followed the instructions here? Configuring Twitter login and rich embeds for Discourse
X oneboxes have been a little challenging to support over the past few years as the platform has become more locked down. I don’t think there’s anything in the headers that indicates whether or not your credentials are working, so you’ll have to double check your admin config.