# Facebook Messenger + URL Shortener by Zapier Integrations: Connect with Zapier MCP
> zapier.com/apps/facebook-messenger/integrations/url-shortener
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Facebook Messenger and URL Shortener by Zapier in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · shortenUrl`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "url-shortener", owner: "me" });

const { data } = await zapier.runAction({
  app: "url-shortener",
  actionType: "write",
  action: "shortenUrl",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action url-shortener write shortenUrl \
  --inputs '{}'
```

## Facebook Messenger

### Identity
Facebook Messenger is a messaging app and platform. Users can send messages and exchange photos, videos, stickers, audio, and other files. This app on Zapier works for conversations that are sent to and from Facebook pages and does not yet support direct messages to a user.

- App slug: facebook-messenger
- Operations published here: 2 (1 event, 1 function)

### Authentication
Zapier connects to Facebook Messenger via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection facebook-messenger
```

### Capabilities

#### Events (1)

Events fire when something happens in Facebook Messenger. Use them to start a run.

##### New Message Sent to Page
Triggers when a new Message is sent to a page.

- Type: read · Key: `message`
- Requires: page
- SDK: `runAction({ app: "facebook-messenger", actionType: "read", action: "message" })`
- CLI: `npx zapier-sdk run-action facebook-messenger read message`

#### Functions (1)

Functions change something in Facebook Messenger.

##### Send Message From Page
Send a message to a user from a page.

- Type: write · Key: `send_message`
- Requires: page, recipient_id, text
- Optional: response_msg
- SDK: `runAction({ app: "facebook-messenger", actionType: "write", action: "send_message" })`
- CLI: `npx zapier-sdk run-action facebook-messenger write send_message`

## URL Shortener by Zapier

### Identity
Create ready-to-share links on the fly. Zapier's URL Shortener spits out a simplified version of any link you throw its way. Pass that link to Twitter, drop it in an email, or send it along to any Zapier-connected app.

- App slug: url-shortener
- Operations published here: 1 (1 function)

### Capabilities

#### Functions (1)

Functions change something in URL Shortener by Zapier.

##### Shorten URL
Shorten a long URL using zpr.io (Intended to provide convenience, not security).

- Type: write · Key: `shortenUrl`
- Requires: url
- SDK: `runAction({ app: "url-shortener", actionType: "write", action: "shortenUrl" })`
- CLI: `npx zapier-sdk run-action url-shortener write shortenUrl`

## Frequently asked questions about automating with Facebook Messenger and URL Shortener by Zapier

### How can I integrate Facebook Messenger with URL Shortener by Zapier?

We make it easy to set up an integration between Facebook Messenger and URL Shortener with our automated workflows called Zaps. Once you create a Zap, you can select triggers such as 'New Message' from Facebook Messenger and use actions like 'Create Short URL' with the URL Shortener.

### What triggers are available for Facebook Messenger in this integration?

Our integration allows you to use triggers like 'New Message' when integrating Facebook Messenger with the URL Shortener app. This means every time you receive a new message on your Facebook Page, it can prompt an action in the URL Shortener.

### Can I customize the short URLs generated through this integration?

In our platform, once you set up the 'Create Short URL' action, you can customize properties such as alias or expiration of the short link, if supported by your chosen shortening service.

### Is it possible to automate responses in Facebook Messenger using this integration?

The integration focuses on automating actions after receiving a message trigger rather than sending automated responses. You might consider using other tools we offer for creating automated replies in Messenger.

### Do I need any coding skills to set up this integration?

No coding skills are required. Our user-friendly interface guides you through setting up Triggers and Actions like 'New Message' and 'Create Short URL.' Just follow simple steps to connect both apps seamlessly.

### Are there any limits on the number of messages or URLs that can be processed in this integration?

While setting up integrations, general limitations may apply based on your Zapier plan regarding how many tasks run per month. This affects how many messages can trigger actions and short URLs creation without hitting limits.

### How secure is my data when connecting Facebook Messenger with URL Shortener?

Your data's security is our priority. We use industry-standard encryption protocols during data transfer between apps via our platform. It's important also to ensure both connected accounts have secure credentials.

## Links
- Facebook Messenger integrations: zapier.com/apps/facebook-messenger/integrations.md
- URL Shortener by Zapier integrations: zapier.com/apps/url-shortener/integrations.md
- Full page: zapier.com/apps/facebook-messenger/integrations/url-shortener
- SDK: npmjs.com/package/@zapier/zapier-sdk