I want to connect to the Twitter app and post an image from Make

I want to retrieve photos from Google Photos and post them on Twitter as tweets. I obtained the API key and API secret from Twitter Developer, but even after entering those keys and secrets on Make, I’m getting the following error and unable to connect to Twitter.
I have no knowledge of coding at all.

What could be the problem? Please let me know.

Thank you in advance.

{
“message”: “The request failed due to failure of a previous request.”,
“code”: “SC424”,
“suberrors”: [
{
“message”: “Status Code Error: 403”,
“name”: “RuntimeError”
}
],
“debug”: [
[
“undefined:”,
“response”,
403,
{
“body”: {
“<?xml version": "'1.0' encoding='UTF-8'?><error code="415">Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings”
},
“headers”: {
“ml”: “A”,
“date”: “Wed, 12 Jul 2023 19:28:24 GMT”,
“perf”: “7626143928”,
“pragma”: “no-cache”,
“server”: “tsa_f”,
“status”: “403 Forbidden”,
“expires”: “Tue, 31 Mar 1981 05:00:00 GMT”,
“set-cookie”: [
“guest_id=v1%3A168919010460928944; Max-Age=34214400; Expires=Sun, 11 Aug 2024 19:28:24 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None”
],
“content-type”: “application/xml;charset=utf-8”,
“cache-control”: “no-cache, no-store, must-revalidate, pre-check=0, post-check=0”,
“last-modified”: “Wed, 12 Jul 2023 19:28:24 GMT”,
“x-transaction”: “809f9e580aa9931c”,
“content-length”: “203”,
“x-frame-options”: “SAMEORIGIN”,
“x-ua-compatible”: “IE=edge,chrome=1”,
“x-transaction-id”: “809f9e580aa9931c”,
“x-xss-protection”: “0”,
“x-content-type-options”: “nosniff”,
“x-twitter-response-tags”: “BouncerCompliant”,
“strict-transport-security”: “max-age=631138519”,
“x-response-time”: “101”,
“x-connection-hash”: “e7ad40375dc0b403b565ef20d43fe9370f49f681a1ecc047e31bc4faf0cdd023”,
“connection”: “close”
}
}
]
]
}
// 20230713042825
// https://eu1.make.com/oauth/auth/1986252

{
“message”: “The request failed due to failure of a previous request.”,
“code”: “SC424”,
“suberrors”: [
{
“message”: “Status Code Error: 403”,
“name”: “RuntimeError”
}
],
“debug”: [
[
“undefined:”,
“response”,
403,
{
“body”: {
“<?xml version": "'1.0' encoding='UTF-8'?><error code="415">Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings”
},
“headers”: {
“ml”: “A”,
“date”: “Wed, 12 Jul 2023 19:28:24 GMT”,
“perf”: “7626143928”,
“pragma”: “no-cache”,
“server”: “tsa_f”,
“status”: “403 Forbidden”,
“expires”: “Tue, 31 Mar 1981 05:00:00 GMT”,
“set-cookie”: [
“guest_id=v1%3A168919010460928944; Max-Age=34214400; Expires=Sun, 11 Aug 2024 19:28:24 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None”
],
“content-type”: “application/xml;charset=utf-8”,
“cache-control”: “no-cache, no-store, must-revalidate, pre-check=0, post-check=0”,
“last-modified”: “Wed, 12 Jul 2023 19:28:24 GMT”,
“x-transaction”: “809f9e580aa9931c”,
“content-length”: “203”,
“x-frame-options”: “SAMEORIGIN”,
“x-ua-compatible”: “IE=edge,chrome=1”,


I have read the help documentation at the following URLs. While I was able to post text tweets using Make even with a free account, does it mean that a paid account for Make or Twitter is required to post images on Twitter?

https://www.make.com/en/help/apps/marketing/twitter?&_gl=1*19yj0oy*_ga*NzcxMjQ0NDM4LjE2ODc0NDM3Nzc.*_ga_MY0CJTCDSF*MTY4OTE4OTQ1Ni4yMy4xLjE2ODkxOTIyMzAuNDUuMC4w&_ga=2.70954768.1607085549.1689189456-771244438.1687443777#connect-twitter-to-make-1775290

https://www.make.com/en/help/apps/marketing/twitter-legacy#connect-twitter-to-make-970321

When asking your question, please include:

:footprints: The steps you have taken
:camera_flash: Relevant screenshots
:link: Any links you have
[ Code { "and": "JSON", "in" : "code block"} ]
:x: Exclude Personal Information.

Hello @Tetsuji nice to meet you.

If you created the application correctly in the developer portal and got all the credentials right, everything I’m going to write below should make Twitter work correctly. Be sure that you are connected with your Twitter account in the same browser when you make the connection.

All you have to do is to follow step by step the documentation link Twitter (make.com) .

The steps are the following:

  1. After you have APY Key and APY Key Secret, search for Twitter (Legacy) and add Upload A Media module.
  • To the connection, add APY Key And APY Key Secret (not client ID and client secret) generated by the app you created on the developer portal.
    image

image

  1. Search for Twitter but not LEGACY modules and add Create a Tweet module.
  • To the connection, add Client ID and Client Secret generated by the app you created on the developer portal.
    image

After the connection is done all what you have to do is to map Media Ids from Upload a Media module
image

//VLAD

1 Like

Same problem Here,

Ok to connect with new twitter modules with client id and client secret.

Imposible to connect on legacy modules with API key and secret.

Too bad cause I picked a paid account just to be able to post pictures on twitter…

1 Like

For those having the same issue to connect the module Twitter Legacy (v5) + Twitter (v6), I found a fix on my side.

Even if i was following the instructions too for the connection’s modules and the settings in twitter developper, i still couldn’t have the 2 modules connected as the same time. It was only one at the same time.

Then i found there is actually 2 differents Callback URI / Redirect URL in the documentations :

  • the one for twitter v5 :

image

  • and the one for v6 :
    image

So the solution is simply to add the 2 Callback URI / Redirect URL in the User authentication set up in Twitter developper for your project app :
image

And make sure your project app is the one free use for v1.1 + v2 access too.

After that you should be able to connect the v5 module with the api key + api key secret and the v6 module with the client ID + client secret.

Hope it will help other people still trying to figure out how to make it work.

10 Likes

Thank you for sharing this solution! This was driving my crazy trying to figure out how to make both the v5 and v6 modules connect. The answer was to include both callback URLs. I didn’t notice that there were two different URLs until you pointed it out.

3 Likes

I’m still struggling with being able to post an image along with a tweet. I am able to make the necessary connections using v5 and v6 of the app, but I keep getting this error:

The operation failed with an error. [403] You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: https://developer.twitter.com/en/portal/product

thanks for this! got things working for me, i’m thrilled.

4 Likes

Solution

3 Likes