external_idに基づいてユーザーを更新するにはどうすればよいですか?

You will first need to lookup the user’s Discourse user_id, then make an update request using that. This should help with the first bit:

「いいね!」 3