开发者

Facebook Link attachment in Ruby on Rails

How do you attach a link in ruby on rails similar to开发者_JS百科 facebook link attachment where you get the title and the description of the link attached.? Could you help me with the code?


You can either use Mechanize

my_page=Mechanize.new
my_page.get("http://google.com")
my_page.page.title

OR, you can use Pismo(https://github.com/peterc/pismo). Details of its usage are available on github.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜