开发者

Facebook Link attachment in Ruby on Rails

开发者 https://www.devze.com 2022-12-23 15:20 出处:网络
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 ei

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

精彩评论

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

关注公众号