Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

118
Views
How to post on Facebook Group using Puppeteer

I'm trying to create a automatic Facebook group poster using puppeteer.

So far I'm able to login to my account and access the groups, but i don't know how to select the

content box.

Check this image

Image 2

const automate = async (text) => {
const browser = await puppeteer.launch({
    headless: false,
    slowMo: 50,
    args: [
        '--start-maximized'
    ]
});
const context = browser.defaultBrowserContext();
context.overridePermissions("https://www.facebook.com", ["geolocation", "notifications"]);
const page = await browser.newPage();
await page.setViewport({
    width: 1366,
    height: 768
});
await page.goto('https://www.facebook.com');
await page.waitForSelector('#email');
await page.type('#email', process.env.email);
await page.type('#pass', process.env.password);
await page.click(`[type="submit"]`);
await page.waitForNavigation();
await clipboardy.write(text);
for (let group of groups) {
    await page.goto(group, {
        waitUntil: 'networkidle2'
    });
    // I Need to select them here
    await page.keyboard.down('Control');
    await page.keyboard.press('V');
    await page.keyboard.up('Control');

}

}

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!