Skip to content

include Adminpanel::Facebook

Jose Ramon edited this page May 31, 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 (It need at leasst permissions to access user pages and to create posts).

You have to whitelist the params fb_message, and fb_page_access_key in your controller

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