【问题标题】:Is it possible to embed a Tweet / Twitter Card natively in iOS?是否可以在 iOS 中原生嵌入 Tweet / Twitter Card?
【发布时间】:2014-06-24 11:50:19
【问题描述】:

是否可以在 iOS 应用程序中原生嵌入 Tweet / Twitter Card (https://dev.twitter.com/docs/cards/types/summary-card)?我只能找到一个提供数据的 API:

https://api.twitter.com/1.1/statuses/show.json?id=210462857140252672

https://dev.twitter.com/docs/api/1.1/get/statuses/show/%3Aid

然后我就可以构建自己的 UIView 来表示 Twitter 卡片,但是在应用程序中以比 HTML 更原生的方式显示 Twitter 卡片难道不是“官方”的吗?

干杯, 马克

【问题讨论】:

  • 不,iOS 中当前对 Twitter 的 API 级别访问不包括卡片对象的呈现。您需要按照您的描述自行滚动。

标签: ios objective-c twitter native


【解决方案1】:

Twitter 通过TwitterKit 提供了一种在 iOS 本地显示推文的官方方式: https://dev.twitter.com/twitter-kit/ios/show-tweets

【讨论】:

    猜你喜欢
    • 2020-12-03
    • 2016-02-14
    • 2018-01-13
    • 1970-01-01
    • 2019-12-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-15
    相关资源
    最近更新 更多