我试图了解Facebook opengraph API结果中“链接”和“来源”之间的区别。
示例#1(常见情况):'link',但没有'source'
{"id":"538094606_148946261795695","from":{"name":"Shameem CK","id":"538094606"},"picture":"http://external.ak.fbcdn.net/safe_image.php?d=b916dff3b3d53ac29d8a3c3b97e3895a&w=90&h=90&url=http%3A%2F%2Fwww.vodafone.in%2Fvodafone%2Fmisc%2Fsep10.jpg",
"link":"http://www.vodafone.in/vodafone/misc/sep10.jpg",
"name":"http://www.vodafone.in/vodafone/misc/sep10.jpg","caption":"www.vodafone.in","icon":"http://static.ak.fbcdn.net/rsrc.php/z2E5Y/hash/8as8iqdm.gif","type":"link","created_time":"2010-08-27T14:13:02+0000","updated_time":"2010-08-27T14:13:02+0000"}
示例#2:无用的'链接','来源'有更多信息
{"id":"1786294159_109521125771227","from":{"name":"Dan Inspire","id":"1786294159"},
"link":"http://www.facebook.com/",
"source":"http://www.youtube.com/v/IY3U2GXhz44&autoplay=1",
"name":"Google I/O 2010 - Keynote Day 2 Android Demo - Full Length","caption":"www.youtube.com","description":"Google I/O 2010 - Keynote Day 2 Android Demo For all I/O 2010 sessions, please go to http://code.google.com/events/io/2010/sessions.html","icon":"http://static.ak.fbcdn.net/rsrc.php/z9XZ8/hash/976ulj6z.gif","type":"video","created_time":"2010-08-27T10:57:09+0000","updated_time":"2010-08-27T10:57:09+0000","likes":1}
如何选择最适合的(链接和来源)显示供用户点击的想法?
答案 0 :(得分:0)
Link是对象的url,通常应用于图像。源用于媒体对象,如视频