Facebook makes automation difficult. Tools like webdriver, selenium or selenium ide don’t work reliably - as their websites changes html elements and IDs all the time.
The best solution I found is to use the new real user simulation. Since it works visually and with images, it works just great. The only drawback is that you can not record (all of) your macro, but have to built it step by step with XClick and XType. But once that’s done, it works reliably.
In your case, maybe it is enough to replace editContent with
- XClick | (same locator as editContent)
- XType | text here…