← back to Dear Bubbe Nextjs

archived/social-posters/test-instagram-post.js

22 lines

#!/usr/bin/env node

const { postAnonymousToInstagram } = require('./instagram-poster');

async function testPost() {
    console.log('🧪 Testing Instagram Post Functionality');
    console.log('=' .repeat(40));
    console.log('This will attempt to make a real post to Instagram');
    console.log('Using account: dearBubbe');
    console.log('=' .repeat(40));
    
    try {
        await postAnonymousToInstagram();
        console.log('\n✅ Test completed successfully!');
    } catch (error) {
        console.error('\n❌ Test failed:', error);
        process.exit(1);
    }
}

// Run the test
testPost();