Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Twitter 403 error You cannot post the same tweet twice

(0) ShareShare
ReportReport
Posted on by 15

I have a really simple flow that checks my outlook calendar,

 

On a specific meeting title it will post a tweet

 

the reasoning for this is - we have been using Zapier to accomplish this using a schedule - however we need to post a 'monday morning tweet', just the usual - "Hi we are open",

 

We need it to take into account public holidays and times the office is shut. I expanded the idea slightly to check on the subject of the meeting with a simple case statment and tweet a different message dependant on that. The plan is to move it over and run it off a Sharepoint list, but we don't have full access to sharepoint or groups yet as it is a staged rollout in our organisation.

 

If you have ever used Buffer - it is pretty much echoing the funtionality of that

 

I have beem playing with Flow as an alternative as we have new guidlines to keep as much development on trusted sources as possible and Zapier and Buffer are not on that list. Where as MS 365 is.

 

The flow was working fine however it started failing last week with no error and today I actually got an error message (below)

 

{ "status": 403, "message": "You cannot post the same tweet twice.", "source": "127.0.0.1" }

 

There was an exisiting tweet from earlier in the day with the same wording - I'm wondering if there is some inbuilt checks to stop Flow spamming twitter - If so - does anyone know what the interval is, As at the very least i would like to have a weekly tweet. If this is not possible then i will have to can the whole idea

 

TIA

 

Mik

  • Mik_Haycock Profile Picture
    15 on at
    Re: Twitter 403 error You cannot post the same tweet twice

    I just make sure I have a different tweet fire between the morning messages. In case nothing else has been tweeted that day/week.

     

    Tweet A = "Hello, Good morning and welcome...blah blah blah"

    Tweet B = "And it's good night from me and it's good night from him"

     

     

    Monday wk1 - Tweet A

    Friday wk1 - Tweet B

    Monday wk2 - Tweet A

    Friday wk2 - Tweet B

    etc.

     

    It used to be set up to run

    Monday wk1 - Tweet A

    Monday wk2 - Tweet A

    Monday wk3 - Tweet A

     

    if no other tweets were fired in between those tweets - that is when the 403 happened

     

    regards

     

    m

  • pladavm Profile Picture
    210 on at
    Re: Twitter 403 error You cannot post the same tweet twice

    @Mik_Haycock How did you make sure the tweet is always different? 

  • Mik_Haycock Profile Picture
    15 on at
    Re: Twitter 403 error You cannot post the same tweet twice

    That would work - however it would decrease your available character count - I have solved the problem simply by using an end of week tweet aswell just to make sure that there is always differing text

  • pladavm Profile Picture
    210 on at
    Re: Twitter 403 error You cannot post the same tweet twice

    Hi @Mik_Haycock @v-micsh-msft What about including the time & date in the tweet that way it is never the same tweet. 

  • Mik_Haycock Profile Picture
    15 on at
    Re: Twitter 403 error You cannot post the same tweet twice

    Hi - yes - sorry for the late reply - this is a bit of a side project and as such got moved to the back burner a bit,

     

    However - after the previous answer and some experimentation with Flow and Twitter

     

    It appears that.

     

    1) You cannot post two consecutive tweets with the exact same text using flow, either by using flow for both tweets, or manually entering the first tweet and then using flow for the second.

    2) If you are using twitter and outlook calender - the flow will only fire for the FIRST appointment in a series.

     

    Basically I believe it is 'working as intended' I was just being stupid and not reading the documentation properly.

     

    regards

     

    Mi

  • v-micsh-msft Profile Picture
    on at
    Re: Twitter 403 error You cannot post the same tweet twice

    Hi @Mik_Haycock,

     

    Any update here?

     

    If you need any further help, please post back.

    Regards,

    Michael

  • Mik_Haycock Profile Picture
    15 on at
    Re: Twitter 403 error You cannot post the same tweet twice

    thanks for the reply Michael,

     

    "A user cannot submit the same status twice in a row."

     

    this bit caught my eye, as looking at the twitter feed - I had tried to post the exact same tweet twice in a row - I shall try to alternate the tweet text and see if that is a viable work around.

     

    Regards

     

    Mik

  • Verified answer
    v-micsh-msft Profile Picture
    on at
    Re: Twitter 403 error You cannot post the same tweet twice

    Hi @Mik_Haycock,

     

     

    I think this is mostly related with Twitter API. Microsoft Flow build the Twitter connector based on the corresponding REST API.

    According the Twitter Developer Documentation:

    "

    For each update attempt, the update text is compared with the authenticating user’s recent Tweets. Any attempt that would result in duplication will be blocked, resulting in a 403 error.

    A user cannot submit the same status twice in a row.

    While not rate limited by the API, a user is limited in the number of Tweets they can create at a time.

    If the number of updates posted by the user reaches the current allowed limit this method will return an HTTP 403 error.

    "

    Reference: POST statuses/update

     

    Currently I can't find any detailed information about the limits mentioned in the document above.
    So the possible workaround here should be, try to make each tweets in a different way, and make sure they are not the same.
    Regards,
    Michael

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow