GRAPH API:如何从后得到链接 [英] GRAPH API:how to get hyperlinks from a post
本文介绍了GRAPH API:如何从后得到链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是平常有在Facebook发布的超链接。
对于例如:我可能会发布这样的事情昨天我到餐厅
It is usual to have hyperlinks in the facebook post. For ex: I may post something like this "Yesterday I went to restaurant".
现在在上面的例子中,通过点击它重定向到餐厅的Facebook页面的餐馆名称。
Now in the above example, By clicking the restaurant name it redirects to facebook page of the restaurant.
要求:
我在Android上使用图形API来得到这个职位的内容,主要的消息字段是内容,,但它仅包含文本。
如何获得超链接的详细信息?
How to get the details of hyperlink?
推荐答案
找到自己的答案:
超链接的细节都在现场中Message_Tag present。
The hyperlink details are present in the message_tag field.
例如:
message_tag:
id:<id of the fb page/account>
name:<name of the account>
offset:120
length:20
下面的超级链接将是从120位在消息字段中的文本140。
Here the hyperlink would be from 120 position to 140 of the text in the message field.
这篇关于GRAPH API:如何从后得到链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文