通过 API 在推文中显示媒体? [英] Display media in tweet via API?

查看:31
本文介绍了通过 API 在推文中显示媒体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个图片分享网站,当人们发布图片时,它会通过链接更新他们的 Twitter 状态.

I have a picture sharing website that when people post a picture, it updates their twitter status with a link to it.

使用新的 Twitter 布局,允许使用名为推文媒体"的内容,他们将显示您在推文中发布的链接中的媒体.

With the new Twitter layout, the allow something called "Tweet Media" where they will show media from the link you posted in your tweet.

我的问题是 - 我该怎么做?我是否必须修改更新我的推文的 PHP 脚本?包含图像的页面告诉 Twitter 要显示什么图像?

My question is - how do I do that? Do I have to modify my PHP script that updates my tweet? The page that contains the image to tell Twitter what image to show?

谢谢!
库尔顿

推荐答案

在新的 Twitter 用户界面的右窗格中显示嵌入的媒体链接是由 Twitter 完成的.你不能自己让它发生.它们查找具有已知模式的 URl,然后显示 URL 中列出的媒体.你应该通过 api@twitter.com 联系 Twitter,让他们知道你的服务.如果他们看到足够高的使用率,他们会将其添加到他们的 UI 代码中.

Displaying embedded media links in the right pane of the new Twitter UI is something that is done by Twitter. You can't make it happen by yourself. They look for URls with known patterns and then display the media listed in the URL. You should contact Twitter at api@twitter.com, and make them aware of your service. If they see a high enough usage, they will add it to their UI code.

这篇关于通过 API 在推文中显示媒体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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