How do I properly 'Retweet with a comment' via Twitter's API











up vote
7
down vote

favorite
2












Twitter has recently implemented an automatic way of quoting tweets. It basically extracts an url from a tweet and shows it embedded within your tweet.



My problem is: how do I 'retweet with a comment' without showing the original tweet URL via API?



Retweeting from the website makes the RT look like this enter image description here.



But when I'm manually prepending a tweet url to my tweet, it looks like this enter image description here.



notice the literal url.










share|improve this question




























    up vote
    7
    down vote

    favorite
    2












    Twitter has recently implemented an automatic way of quoting tweets. It basically extracts an url from a tweet and shows it embedded within your tweet.



    My problem is: how do I 'retweet with a comment' without showing the original tweet URL via API?



    Retweeting from the website makes the RT look like this enter image description here.



    But when I'm manually prepending a tweet url to my tweet, it looks like this enter image description here.



    notice the literal url.










    share|improve this question


























      up vote
      7
      down vote

      favorite
      2









      up vote
      7
      down vote

      favorite
      2






      2





      Twitter has recently implemented an automatic way of quoting tweets. It basically extracts an url from a tweet and shows it embedded within your tweet.



      My problem is: how do I 'retweet with a comment' without showing the original tweet URL via API?



      Retweeting from the website makes the RT look like this enter image description here.



      But when I'm manually prepending a tweet url to my tweet, it looks like this enter image description here.



      notice the literal url.










      share|improve this question















      Twitter has recently implemented an automatic way of quoting tweets. It basically extracts an url from a tweet and shows it embedded within your tweet.



      My problem is: how do I 'retweet with a comment' without showing the original tweet URL via API?



      Retweeting from the website makes the RT look like this enter image description here.



      But when I'm manually prepending a tweet url to my tweet, it looks like this enter image description here.



      notice the literal url.







      twitter






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 16 '15 at 17:09









      phil652

      1,25711636




      1,25711636










      asked Apr 16 '15 at 16:37









      Felipe Borges

      365




      365
























          2 Answers
          2






          active

          oldest

          votes

















          up vote
          5
          down vote













          My understanding is that you are achieving the closest solution that Twitter API offers. This thread talks about doing the following:




          1. do a status update, with the 'status' field containing the text of the original tweet, followed by the link to the original tweet. The 'in_reply_to_status_id' field should not be set. This action does not result in the "retweet count" being increased.


          2. do a retweet, which will increase the retweet count.






          share|improve this answer




























            up vote
            0
            down vote













            your tweet has a quoted_status, just put the tweet url as attachment_url args, e.g.




            client.update('cool', attachment_url: 'https://twitter.com/emorima/status/1061581991798169600')



            it's ruby code with twitter gem






            share|improve this answer





















              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f29680965%2fhow-do-i-properly-retweet-with-a-comment-via-twitters-api%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              5
              down vote













              My understanding is that you are achieving the closest solution that Twitter API offers. This thread talks about doing the following:




              1. do a status update, with the 'status' field containing the text of the original tweet, followed by the link to the original tweet. The 'in_reply_to_status_id' field should not be set. This action does not result in the "retweet count" being increased.


              2. do a retweet, which will increase the retweet count.






              share|improve this answer

























                up vote
                5
                down vote













                My understanding is that you are achieving the closest solution that Twitter API offers. This thread talks about doing the following:




                1. do a status update, with the 'status' field containing the text of the original tweet, followed by the link to the original tweet. The 'in_reply_to_status_id' field should not be set. This action does not result in the "retweet count" being increased.


                2. do a retweet, which will increase the retweet count.






                share|improve this answer























                  up vote
                  5
                  down vote










                  up vote
                  5
                  down vote









                  My understanding is that you are achieving the closest solution that Twitter API offers. This thread talks about doing the following:




                  1. do a status update, with the 'status' field containing the text of the original tweet, followed by the link to the original tweet. The 'in_reply_to_status_id' field should not be set. This action does not result in the "retweet count" being increased.


                  2. do a retweet, which will increase the retweet count.






                  share|improve this answer












                  My understanding is that you are achieving the closest solution that Twitter API offers. This thread talks about doing the following:




                  1. do a status update, with the 'status' field containing the text of the original tweet, followed by the link to the original tweet. The 'in_reply_to_status_id' field should not be set. This action does not result in the "retweet count" being increased.


                  2. do a retweet, which will increase the retweet count.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jun 8 '15 at 23:02









                  cyrf

                  1,08011122




                  1,08011122
























                      up vote
                      0
                      down vote













                      your tweet has a quoted_status, just put the tweet url as attachment_url args, e.g.




                      client.update('cool', attachment_url: 'https://twitter.com/emorima/status/1061581991798169600')



                      it's ruby code with twitter gem






                      share|improve this answer

























                        up vote
                        0
                        down vote













                        your tweet has a quoted_status, just put the tweet url as attachment_url args, e.g.




                        client.update('cool', attachment_url: 'https://twitter.com/emorima/status/1061581991798169600')



                        it's ruby code with twitter gem






                        share|improve this answer























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          your tweet has a quoted_status, just put the tweet url as attachment_url args, e.g.




                          client.update('cool', attachment_url: 'https://twitter.com/emorima/status/1061581991798169600')



                          it's ruby code with twitter gem






                          share|improve this answer












                          your tweet has a quoted_status, just put the tweet url as attachment_url args, e.g.




                          client.update('cool', attachment_url: 'https://twitter.com/emorima/status/1061581991798169600')



                          it's ruby code with twitter gem







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 11 at 12:17









                          lfx_cool

                          4,36421719




                          4,36421719






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f29680965%2fhow-do-i-properly-retweet-with-a-comment-via-twitters-api%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Full-time equivalent

                              Bicuculline

                              さくらももこ