# Resolve Facebook page URL variants & dedupe posts — example

**Use case:** 

Five URL styles → 3 canonical page identities, 1 duplicate removed before counting, 1 ambiguous link reported with evidence instead of guessed. Free.

## Input

```json
{
  "items": [
    {
      "pageName": "Helen's Fresh Market",
      "facebookUrl": "https://m.facebook.com/HelensFreshMarket/",
      "url": "https://m.facebook.com/helensfreshmarket/posts/101",
      "text": "Fresh catch this morning",
      "likes": 42,
      "comments": 5,
      "time": "2026-07-01T09:00:00.000Z"
    },
    {
      "pageName": "Helen's Fresh Market",
      "facebookUrl": "https://www.facebook.com/helensfreshmarket",
      "url": "https://www.facebook.com/helensfreshmarket/posts/102",
      "text": "Weekend dockside prices",
      "likes": 58,
      "comments": 7,
      "time": "2026-07-02T09:00:00.000Z"
    },
    {
      "pageName": "Caladan Bay Tours",
      "facebookUrl": "https://www.facebook.com/profile.php?id=100077000000001",
      "url": "https://www.facebook.com/caladanbaytours/posts/201",
      "text": "Green flash at sunset",
      "likes": 40,
      "comments": 3,
      "time": "2026-07-03T18:00:00.000Z"
    },
    {
      "pageName": "Caladan Bay Tours",
      "facebookUrl": "https://www.facebook.com/caladanbaytours/",
      "url": "https://m.facebook.com/caladanbaytours/posts/201?ref=share&utm=x",
      "text": "Green flash at sunset",
      "likes": 41,
      "comments": 3,
      "time": "2026-07-03T18:00:00.000Z"
    },
    {
      "pageName": "Windward Fitness",
      "facebookUrl": "https://www.facebook.com/p/Windward-Fitness-100088000000002/",
      "url": "https://www.facebook.com/windwardfitness/posts/301",
      "text": "New class schedule is up",
      "likes": 25,
      "comments": 2,
      "time": "2026-07-04T08:00:00.000Z"
    },
    {
      "pageName": "",
      "facebookUrl": "https://www.facebook.com/watch?v=12345",
      "url": "https://www.facebook.com/watch?v=12345",
      "text": "Shared video",
      "likes": 9,
      "comments": 1,
      "time": "2026-07-05T10:00:00.000Z"
    }
  ],
  "includePosts": true
}
```

## Output

```json
{
  "type": {
    "label": "Item type",
    "format": "text"
  },
  "canonical_id": {
    "label": "Canonical ID",
    "format": "text"
  },
  "page_name": {
    "label": "Page name",
    "format": "text"
  },
  "posts": {
    "label": "Posts",
    "format": "number"
  },
  "variants": {
    "label": "URL variants observed",
    "format": "array"
  },
  "candidates": {
    "label": "Same-name candidates",
    "format": "array"
  },
  "evidence": {
    "label": "Evidence",
    "format": "text"
  },
  "reason": {
    "label": "Unresolved reason",
    "format": "text"
  },
  "note": {
    "label": "Note",
    "format": "text"
  },
  "unique_posts": {
    "label": "Unique posts"
  },
  "duplicates_removed": {
    "label": "Duplicates removed"
  },
  "pages_resolved": {
    "label": "Pages resolved"
  },
  "same_name_hints": {
    "label": "Same name hints"
  },
  "input_format": {
    "label": "Input format"
  }
}
```

## About this Actor

This example demonstrates how to use [Facebook Page Identity Resolver & URL Deduplicator](https://apify.com/mentat-logic/mentat-resolver) with a specific input configuration. Visit the [Actor detail page](https://apify.com/mentat-logic/mentat-resolver) to learn more, explore other use cases, and run it yourself.