Rehna
Rehna

Reputation: 95

FBGraph message containing embedded link text in ruby on rails?

I am new in FBGraph and ruby. I am using FBGraph api for facebook and the following code for posting. me = FbGraph::User.me(ACCESS_TOKEN) me.feed!( :message => 'Updating via FbGraph', )

Its working fine for me.

I want to post a message containing an html tag <a href= "somelink">Text</a>

Please advice.

Thanks in Advance

Upvotes: 1

Views: 216

Answers (1)

blnc
blnc

Reputation: 4404

You would add the following to me.feed! (I added some others just for good measure):

        me.feed!(
        :message => 'Updating via FbGraph',
        :name => 'Update',
        :link => 'http://www.somelink.com/',
        :description => 'My description'
      )

Upvotes: 1

Related Questions