Web site reference


#1

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.


#2

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.


#3

I am sending out a tweet from my PHP app. I am looking for help with two issues:

  1. The tweet has a link reference at the end of it that is converted by Twitter to a compressed t.co link using the first 30 or so characters of the link as the link display text. My question is how do I change that text to something like “VIEW FULL RESULTS”?

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.

Thanks.


#4

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


#5

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.

Thanks.


#6

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.


#7

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.