What to use to create a bot that posts in my Facebook pages

I have Facebook pages for the online store, for fun and for other pages. I want to create a bot that publishes (images and description) on these pages when I do not have this opportunity.
I have basic knowledge in php and javascript programming. Will this knowledge help me?
What technologies should I use?
Thank you!