How to add a Facebook Like button to your offers

Follow these steps to add a Facebook “Like” button to your PAS powered Rakeback website.

1. Log in to the PAS Publisher Admin, navigate to the CMS and open any of your Rakeback offer pages. For this example we will use the Full Tilt Poker offer page (/rakeback/full-tilt-poker.html)

2. Copy and paste the following HTML to where you want the “Like” button to appear (don’t forget to save the CMS Page):

https://gist.github.com/raw/805522/4135b2a0b6c4d7f7617b43bfaf1ea39d56df8a1b/gistfile1.html

3. (Optional) If you wish to add Google Analytics tracking to the “Like” URL, edit the “href” part of the iframe and enter your campaign tracking parameters.

Extra credit: If you want the Like button to appear on all of your site pages, just put the code anywhere on your Site layout page (layout/layout.html). The snippet will be smart enough to use the URL of the page the visitor is viewing.

Result:

10 replies
  1. franBG
    franBG says:

    I’m having a problem with this matter. After I click the button on my PAS website, when I go to my Facebook profile and check my recent activity, the URL of the link always referer to my home page instead of the address where the Like button is placed. I tried to put some meta tags in the layout in order to correctly fill the fields, but the problem still remains. Any advice would be greatly appreciated.

    Reply
  2. Jose
    Jose says:

    If you place the snippet in a CMS page that get’s re-used by all offer pages (like the signup form), you won’t have to repeat the process for all offer pages. In fact, you can just drop it in the Site layout too. The reason you want to use the {{ tld }}/{{ current_page }} tag is so that the URL gets generated automatically by the CMS depending on what page the user is visiting.

    Reply
  3. Jose
    Jose says:

    Hey guys, I updated the snippet to use the {{ current_page_url | html_escape }} tag which will correctly format the URL. Please use this updated version instead. Also added instructions to make it work across the entire site.

    Reply
  4. franBG
    franBG says:

    Hi Jose, there is an error in the code you’ve posted above. There is a “&” missed between the url and the layout vars.

    Reply
  5. franBG
    franBG says:

    Jose,

    The error was in your previous version, now it’s fine. The previous had “}};layout=” instead of “}}&layout=”.

    Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *