[英]Twitter PHP - URL not encoded in tweet
I'm trying to post to Twitter using the Twitter PHP SDK twitter-async my tweets include a URL in them that doesn't seem to be getting encoded. 我正在尝试使用Twitter PHP SDK twitter-async发布到Twitter,我的推文中似乎包含未编码的URL。 How can I make the URLs show properly when tweeted? 发推文时如何使网址正确显示?
I call this function in the SDK 我在SDK中称这个功能
function postTweet($tweet) {
$this->twitterObj->post('/statuses/update.json', array('status' => $tweet));
}
There's not much to it really. 真的没有太多。
最后,这仅仅是Twitter无法识别我的本地URL的问题,当我测试更改到生产站点时,它可以正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.