Hi,
I need help developing a tweet button using javascript. After i tweet something i need 2 things :
-
a callback that let`s me know the tweet was performed and
-
the text of the tweet
-
I got it covered using twttr.events.bind(‘tweet’, onTweetFunction);
-
If i cant do it directly, im not sure how to do it .I was thinking maybe after the tweet i can get the id ,and then check by id if the text matches what i need… (to help you understand what im asking: im going to have a social feature on my website where if a persons tweets my message he/she will get bonus points. I don`t want to give bonus points to persons who share a random text message. I want to be sure they have my link in the tweet)
I know i can achieve this using php sdk,but i don`t know if i can save a permanent access token after user first signs in using twitter.
If possible ,i would prefer the last solution ,using php.
Thanks for your help,
Radu B.