How can I get embed Facebook post code?

123 Views Asked by At

I am using Koala gem to get as a Facebook API client in my Ruby on Rails app.

module Clients::FacebookClient

  def self.client(account)
    Koala::Facebook::API.new(account.token, ENV["#{Rails.env.upcase}_FACEBOOK_APP_SECRET"])
  end 
end

With this client, I do POST and GET request, But I have not found out the way to I getting the embed code of a particular post.

Update:

I try as @CBroe noticed with this post: https://www.facebook.com/permalink.php?story_fbid=484231551966124&id=100011378496668, and according with documentation, the GET request was done like this: https://www.facebook.com/plugins/post/oembed.json/?url=https://www.facebook.com/permalink.php?story_fbid=484231551966124 but the response is a 404 no found.

0

There are 0 best solutions below