How to include url in outgoing text message using twilio API? I tried, but the message was not sent. Is there a specific format? syntax?
Update : Here is the code: (I am using php api) Perhaps the problem is related to using the variable in the link? or maybe in a different format?
$sms = $client->account->sms_messages->create( "xxx-xxx-xxxx", $send_to_number, "Hey $var1. words words $var2. via example.com. see: https://graph.facebook.com/$fb_id/picture");
The example.com link works fine, so $var1 and $var2 . But when adding the last link that includes the variable (and this is from the facebook api chart, but I don't think it matters), then the message is not sent. Is there any way to solve this without shortening the URL?
source share