Help

Post to Twitter

Topic Labels: Automations
953 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Lawrence_Guiel
4 - Data Explorer
4 - Data Explorer

Hi guys.

Having some issues integrating airtable with Twitter. I know there is already something set up in Airtable to post Tweets but I don’t want to be limited with the attachment file sizes that are imposed.

Can anyone shed some light on why this fetch call can’t authenticate please.

var myHeaders = new Headers();

myHeaders.append(“Accept”, “/”);

myHeaders.append(“Connection”, “close”);

myHeaders.append(“Cookie”, “guest_id=v1%3A163524415819855112; personalization_id=“v1_enOaDCeivWtb8VsMrM7chg==”; lang=en”);

myHeaders.append(“User-Agent”, “OAuth gem v0.4.4”);

myHeaders.append(“Content-Type”, “application/x-www-form-urlencoded”);

myHeaders.append(“Authorization”, myStr);

var requestOptions = {

method: ‘POST’,

headers: myHeaders,

};

fetch(“https://api.twitter.com/1.1/statuses/update.json?status=Hello%20Ladies%20%2B%20Gentlemen%2C%20a%20si...”, requestOptions)

.then(response => response.json())

.then(responseBody =>{

    console.log(responseBody);

})

.catch(error => console.log('error', error));

Really appreciate any help :slightly_smiling_face:

1 Reply 1
ScottWorld
18 - Pluto
18 - Pluto

Sorry, I don’t know scripting so someone else will need to help you there.

However, it’s very easy to post to Twitter from Airtable with absolutely no coding at all by using Make.

Here is the link to Make’s Twitter v2 integrations, which works with both v2 of Twitter’s API and the free tier of Twitter. It also works with paid tiers as well.

Here is Make’s documentation on how to configure your Twitter API with Twitter’s API v2.

And, to trigger a Make scenario instantly from Airtable with no delays by using a webhook, check out this thread.

Also, there can be a bit of a learning curve with Make, which is why I created this basic navigation video for Make, along with the links to a few other Make training resources.

p.s. If you have a budget for your project and you’d like to hire an expert Airtable consultant to help you with any of this, please feel free to contact me through my website: Airtable consulting — ScottWorld