How can I access the twitter gif library via PHP (or at least force a giphy link to embed in a tweet with another link)?


#1

Howdy howdy. I want to be able to post tweets that include both a link to my site, and an embedded gif. When creating a tweet manually its easy. I write up the tweet then hit the gif button, choose my gif and we are done. But I cant seem to figure out how to do this when I post from my PHP script. Is there an API for the gif library?

Alternatively I tried just adding a link from giphy to the body of the tweet, but since I already had a link to my site in the tweet the gif wasn’t expanded, instead the preview card for my website was displayed.

Thanks!


#2

There is no API or programmatic access to the GIFs in the client app or website. You would have to build that integration with a GIF service yourself.