Facebook has aggressive rate-limiting systems. If a single account sends more than a few like requests per minute, Facebook will temporarily block that action and often throw a CAPTCHA or require a login verification. Scripts running in Termux cannot solve CAPTCHAs natively.
Tools like Selenium or Chromium simulate a real user opening a browser, scrolling through the feed, and clicking buttons. Facebook Auto Liker Termux