I am using the TwitterOAuth.php library to post event results from my app. at the end of the tweet I put this url:
http://netsportmgt.com/events/event_view_heat_pc.php?event_num=97&event_div_num=1156&event_div_heat_num=1&location=1
The text currently displayed in the tweet is:
“netsportmgt.com/events/event_v…”
The full link (above) is actually compressed by Twitter to a t.co link.
How do I change the text to just display “VIEW FULL RESULTS” as a link instead of the text above.
Alternately, is there any way to render the link as some sort of media? If you copy the link to a browser you will see it is small and sized to fit almost in the tweet box.
Thanks.
Twitter Card markup describes your shared link to generate a preview on Twitter.
You may render the resulting Tweet on your website with an embedded Tweet.
I am sending out a tweet from my PHP app. I am looking for help with two issues:
I have looked at the API documentation and there is not much there to work with.
what I really need is, if this is possible, is an example study.
You can not set text to display in place of the link. Twitter will display the URL with possible concatenation. https://dev.twitter.com/basics/tco
The second part of my wish list is this:
is it possible to render a small web page at the top of the tweet similar to a video or a jpg?
again, specific PHP examples would be appreciated, if it can be at all.
That is not possible, but if you want to show an image when your web link is included in a Tweet, look into using Twitter Cards.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.