Gautam
Gautam

Reputation: 41

Facebook Link attachment in Ruby on Rails

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

Upvotes: 4

Views: 611

Answers (1)

sohaibbbhatti
sohaibbbhatti

Reputation: 2682

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.

Upvotes: 2

Related Questions