从链接中提取信息,如Facebook墙 [英] Extract information from link, like Facebook wall

查看:120
本文介绍了从链接中提取信息,如Facebook墙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在开发可以发布像某种饲料内容的应用程序。
我想补充的内容像一个链接(比如在Facebook上墙)。

I have been developing an application that can publish content like some sort of feed. I want to add the content like a link (like on the facebook wall).

然后我想一些逻辑来解析链接目标并提取权文本和图像创建缩略图。

Then i want some logic to parse the link destination and extract the right text and image to create a thumbnail.

就像Facebook的做它,当你张贴在墙上的链接。

Just like Facebook does it when you are posting a link on your wall.

提取/爬行引擎似乎很复杂,但是这将是解决这个的最好方法是什么?

The extraction/crawling engine seems quite complex, but what would be the best way to approach this?

我曾经想过围绕Facebook的API去和后和当时得到回来自Facebook和这样的项目只需使用自己的引擎,但我真的想这样做,因为内部系统。

推荐答案

据我所知Facebook的使用元标签(开放图谱协议)来实现的。你可以学习更多的: https://developers.facebook.com/docs/opengraph/

AFAIK Facebook does this by using meta tags (Open Graph Protocol). You can study more at: https://developers.facebook.com/docs/opengraph/.

基本上,如果你想实现你应该定义一个约定是在内部。结果
希望这有助于。

Basically, you should define a convention if you want to implement is internally.
Hope this helps.

这篇关于从链接中提取信息,如Facebook墙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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