Skip to content

include Adminpanel::Facebook

Jose Ramon edited this page May 30, 2014 · 13 revisions

With this, the resource is going to have a facebook button to share the resource on facebook, you'll have to set your fb_app_id and fb_app_secret in your configuration and have the fb app configured correctly.

You have to whitelist the params fb_message, and fb_page_access_key

And overwrite instance_method

def fb_link
  Rails.application.routes.url_helpers.nintendo_url(self, host: 'www.rentadoraisla.com')
end

That method should return the link of public location of that resource.

Clone this wiki locally