How do I share an image on Twitter?

0 favourites
  • 2 posts
  • Ok so I'm starting to get mad with this, can't find a solution/explanation to make it work but (and I'm quite stupid because I lose the file) I already did this perfectly last year.

    How can I share an image or a gif or even a video on twitter and instagram?

    My code is like:

    -> Browser: Go to " &text=This is a my text. &img to URL(" (target self)

    Please help me! I trying to resolve this for hours!! How is it possible to not have a proper working action include in construct?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I didn't find it out yet but remember something about twitter card.

    It's quite simple you just have to had some code on your index.html page. When you call your tweet with your referred game's page (with browser object), it will automatically display an image or video with desc and title.

    Infos there:

    And here is what the code should look like inside your page:

    <meta name="twitter:card" content="summary"/>
    <meta name="twitter:site" content="@yourname"/>
    <meta name="twitter:creator" content="@yourname"/>
    <meta property="twitter:description" content="Your text"/>
    <meta property="twitter:image" content=""/>

    And finally the page to test your image:

    Hope it will help you guys, especially if you are as lost as I am XD

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)