Opengraph
(未显示1个用户的25个中间版本) | |||
第4行: | 第4行: | ||
− | + | 接入兴趣图谱,开发者将获得<span style="display:none">2个</span>与微博消息流深入连接的能力特性: | |
<div style="margin:5px auto;padding:5px 0;"> | <div style="margin:5px auto;padding:5px 0;"> | ||
<ul style="margin:0;padding:0;list-style:none;font-weight:bold;text-align:center;"> | <ul style="margin:0;padding:0;list-style:none;font-weight:bold;text-align:center;"> | ||
<li style="margin:0 10px;padding:0 15px;border:1px solid #D5E0E8;background:#F5FAFC;float:left;width:250px;height:35px;line-height:35px;">链接卡片(Link Card)</li> | <li style="margin:0 10px;padding:0 15px;border:1px solid #D5E0E8;background:#F5FAFC;float:left;width:250px;height:35px;line-height:35px;">链接卡片(Link Card)</li> | ||
− | <li style="margin:0 10px;padding:0 15px;border:1px solid #D5E0E8;background:#F5FAFC;float:left;width:250px;height:35px;line-height:35px;">赞动态(Like Action)</li> | + | <li style="margin:0 10px;padding:0 15px;border:1px solid #D5E0E8;background:#F5FAFC;float:left;width:250px;height:35px;line-height:35px;display:none;">赞动态(Like Action)</li> |
</ul> | </ul> | ||
<div style="clear:both;height:0px;font-size:0px;padding:0;margin:0;border:0;line-height:0px;overflow:hidden;"></div> | <div style="clear:both;height:0px;font-size:0px;padding:0;margin:0;border:0;line-height:0px;overflow:hidden;"></div> | ||
</div> | </div> | ||
+ | |||
+ | |||
+ | 分享关于兴趣的故事内容,将有4个元素呈现其中:人、应用、行为、对象。其中 “人” 即微博用户,“应用” 就是你的应用,“行为” 即赞,而 “对象” 则是人们兴趣交互的目标实体。因此接入兴趣图谱,首先要能接入对象库(Connect Object),了解更多信息,[[opengraph/object|现在就开始]]。 | ||
第20行: | 第23行: | ||
+ | 例如一个文章类型的链接卡片: | ||
+ | |||
+ | |||
+ | {{center|http://www.sinaimg.cn/blog/developer/wiki/pics/link_card_2.png}} | ||
+ | |||
+ | |||
+ | 当然人们可以在多个终端上看到同样形式的链接卡片,比如在iOS设备上看到的就是这个样子: | ||
+ | |||
+ | |||
+ | {{center|http://www.sinaimg.cn/blog/developer/wiki/pics/link_card_ios_2.png}} | ||
+ | |||
+ | |||
+ | <span style="color:red">链接卡片(Link Card)目前处于邀请接入测试阶段,希望接入体验的第三方,请邮件 [mailto:open_api@sina.com open_api@sina.com] 申请,并按 [[opengraph/object_data_callback|对象数据回调(Object Data Callback)]] 文档要求提供资源,我们评估接入方的情况后确定是否提前为您开通。</span> | ||
+ | |||
+ | <div style="display:none"> | ||
==赞动态(Like Action)== | ==赞动态(Like Action)== | ||
赞是基于兴趣在内容与人之间建立的一个连接。点赞会发布一个建立在兴趣图谱上的赞动态,其内容会显示在这个人及其粉丝的微博消息流上。这些赞动态会链接回你的网站。 | 赞是基于兴趣在内容与人之间建立的一个连接。点赞会发布一个建立在兴趣图谱上的赞动态,其内容会显示在这个人及其粉丝的微博消息流上。这些赞动态会链接回你的网站。 | ||
+ | |||
+ | |||
+ | 例如一组音乐类型的赞动态,在微博消息流上会这样呈现: | ||
+ | |||
+ | |||
+ | {{center|http://www.sinaimg.cn/blog/developer/wiki/pics/like_action.png}} | ||
+ | |||
+ | |||
+ | 在你的应用或网站中发布赞动态,你有2种方法可以选择: | ||
+ | |||
+ | <div style="margin:5px auto;padding:5px 0;"> | ||
+ | <ul style="margin:0;padding:0;list-style:none;font-weight:bold;text-align:center;"> | ||
+ | <li style="margin:0 10px;padding:0 15px;border:1px solid #D5E0E8;background:#F5FAFC;float:left;width:250px;height:35px;line-height:35px;">赞接口(Like API)</li> | ||
+ | <li style="margin:0 10px;padding:0 15px;border:1px solid #D5E0E8;background:#F5FAFC;float:left;width:250px;height:35px;line-height:35px;">赞组件(Like Widget)</li> | ||
+ | </ul> | ||
+ | <div style="clear:both;height:0px;font-size:0px;padding:0;margin:0;border:0;line-height:0px;overflow:hidden;"></div> | ||
+ | </div> | ||
===赞接口(Like API)=== | ===赞接口(Like API)=== | ||
− | + | '''读取接口''' | |
+ | |||
*[[2/interest/like_count|interest/like_count]] 根据URL批量获取对象的总喜欢数 {{Icon_adv}} | *[[2/interest/like_count|interest/like_count]] 根据URL批量获取对象的总喜欢数 {{Icon_adv}} | ||
*[[2/interest/like_exist|interest/like_exist]] 根据URL批量判断某个人是否喜欢过某个对象 {{Icon_adv}} | *[[2/interest/like_exist|interest/like_exist]] 根据URL批量判断某个人是否喜欢过某个对象 {{Icon_adv}} | ||
− | + | ||
+ | '''写入接口''' | ||
+ | |||
*[[2/interest/like|interest/like]] 通过URL喜欢某个对象 {{Icon_adv}} | *[[2/interest/like|interest/like]] 通过URL喜欢某个对象 {{Icon_adv}} | ||
*[[2/interest/unlike|interest/unlike]] 通过URL取消喜欢某个对象 {{Icon_adv}} | *[[2/interest/unlike|interest/unlike]] 通过URL取消喜欢某个对象 {{Icon_adv}} | ||
+ | |||
+ | ===赞组件(Like Widget)=== | ||
+ | |||
+ | 了解赞组件(Like Widget)的部署,请阅读 [http://open.weibo.com/widget/like.php 赞组件(Like Widget)]。 | ||
+ | </div> | ||
__NOTOC__ | __NOTOC__ |
2013年11月15日 (五) 09:25的最后版本
兴趣图谱(Open Graph)
兴趣图谱帮助用户在使用应用时,快捷分享关于兴趣、生活的交互故事。他是一套标准化、结构化的信息传播方法,为开发者提供了将其应用或网站,深入连接到微博的途径。
接入兴趣图谱,开发者将获得 与微博消息流深入连接的能力特性:
- 链接卡片(Link Card)
分享关于兴趣的故事内容,将有4个元素呈现其中:人、应用、行为、对象。其中 “人” 即微博用户,“应用” 就是你的应用,“行为” 即赞,而 “对象” 则是人们兴趣交互的目标实体。因此接入兴趣图谱,首先要能接入对象库(Connect Object),了解更多信息,现在就开始。
链接卡片(Link Card)
链接卡片可以帮助丰富你的微博内容,是针对微博消息流中带有的短链接,为用户提供更多的内容与更完美的视觉体验,从而为你的网站带来更多、更有效的回流访问量。
例如一个文章类型的链接卡片:
当然人们可以在多个终端上看到同样形式的链接卡片,比如在iOS设备上看到的就是这个样子:
链接卡片(Link Card)目前处于邀请接入测试阶段,希望接入体验的第三方,请邮件 open_api@sina.com 申请,并按 对象数据回调(Object Data Callback) 文档要求提供资源,我们评估接入方的情况后确定是否提前为您开通。
文档更新时间: 2013-11-15