使用 twitteroauth 发布可点击的链接? [英] Tweet clickable links with twitteroauth?

查看:23
本文介绍了使用 twitteroauth 发布可点击的链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用来自 https://github.com/abraham/twitteroauth 的 twitteroauth,如下所示:

I'm using twitteroauth from https://github.com/abraham/twitteroauth like this:

 $Twitter = new TwitterOAuth(...);
 $Twitter->post('statuses/update', array('status' => 'click <a href="http://google.com">here</a>'));

推文网址显示为纯文本,不可点击.如何发布真实链接?

Tweeted URLs are shown as plain text and not clickable. How do I post a real Link?

推荐答案

您是否尝试过不带 HTML 标记和 http://发布链接 - 发布 http://www.google.com 与 www.google.com,我使用的是相同的 API,这似乎对我有用,但创建超链接就像你在HTML,似乎不起作用.现在我想起来了,我不知道我曾经在 Twitter 或 TweetDeck 中遇到过超链接样式的链接,只是通过缩短器运行的 URL...

Have you tried posting the link with out the HTML markup and with http:// - posting http://www.google.com vs www.google.com, I'm using the same API and that seems to work for me, but creating the hyperlink as you would in HTML, doesn't seem to work. And now that that I think of it, I don't know that I've ever run across a hyperlink style link in Twitter or TweetDeck, just URL's that are run through a shortener...

这篇关于使用 twitteroauth 发布可点击的链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆