Facebook like pop up for only new people

You want to create a Facebook like popup that only appears to new visitors or people who have never interacted with your page before. This is a great way to welcome new users and encourage them to like your page.

Here's a step-by-step guide to help you achieve this:

Method 1: Using Facebook's Built-in Feature

  1. Go to your Facebook page and click on the "Settings" icon (looks like a little gear) at the top right corner.
  2. Click on "Templates and Tabs" from the dropdown menu.
  3. Scroll down to the "Welcome" section and click on "Edit".
  4. In the "Welcome" section, you'll see an option to "Show this welcome message to people who haven't liked your page yet". Enable this option.
  5. Customize the welcome message to your liking, including a call-to-action to like your page.

Method 2: Using a Third-Party Plugin

  1. Install a Facebook plugin like "Facebook Like Box" or "Social Warfare" on your website.
  2. Configure the plugin to display a popup or modal window that appears only to new visitors.
  3. Set the plugin to track visitors who have already liked your page and exclude them from seeing the popup.

Here are some popular plugins you can use:

Method 3: Using JavaScript and Facebook's API

  1. Use JavaScript to detect whether a visitor has already liked your page or not.
  2. Use Facebook's API to retrieve the visitor's page likes and check if they have liked your page.
  3. If the visitor has not liked your page, display a popup or modal window with a call-to-action to like your page.

Here's some sample JavaScript code to get you started:

// Check if the visitor has already liked your page
FB.api('/me/likes', function(response) {
  if (!response.data.includes('your-page-id')) {
    // Display the popup or modal window
    $('#popup').show();
  }
});

Note: Replace your-page-id with the actual ID of your Facebook page.