כל הפוסטים
מדריכים12 דקות קריאהעודכן 3 בספטמבר 2026

איך פותחים חשבון WhatsApp Business API דרך Meta Business Manager

פתיחת חשבון הודעות ל-WhatsApp עוברת דרך Meta Business Manager, והיא מורכבת מ-7 שלבים שצריך לעשות לפי הסדר. בסוף התהליך יש ביד ארבעה ערכים: App ID, Phone number ID, WhatsApp Business Account ID וטוקן קבוע. עם ארבעת אלה מחברים את החשבון לכל מערכת שמנהלת את ההודעות.

ההקמה עצמה לוקחת בערך שעה. מה שלוקח יותר זמן זה האימות של מטא מול האתר ומסמכי החברה, ואי אפשר לזרז אותו. לכן כדאי להכין את החומרים מראש.

מה צריך להכין לפני שמתחילים

חמישה דברים, וכדאי שכולם יהיו מוכנים לפני הצעד הראשון. חוסר באחד מהם עוצר את התהליך באמצע.

  1. אתר אינטרנט פעיל ב-https, פתוח לגלישה מארה"ב. באתר צריכים להופיע שם החברה, כתובת ותיאור קצר של תחום הפעילות. מטא בודקת את האתר מחוץ לישראל, ואתר שחסום לגלישה מהחוץ לא יעבור את הבדיקה, לרוב בלי הודעת שגיאה מפורטת.
  2. פרופיל פייסבוק אישי פעיל ובשימוש שוטף של מי שמקים את החשבון. מטא מסתכלת כאן על הפרופיל הפרטי, גם למי שיש דף עסקי.
  3. גישה ל-Business Manager הארגוני. אם עוד אין לכם, אפשר ליצור אחד בחינם מתוך אותו פרופיל.
  4. מספר טלפון ייעודי לשירות, נייד או קווי, שלא היה מותקן עליו וואטסאפ אף פעם. הוא צריך לקבל SMS או שיחה קולית בזמן ההקמה. מספר קווי שעונה עם נתב שיחות לא יעבוד, אבל אפשר להגדיר עליו עקוב אחרי.
  5. כרטיס אשראי להזנה בממשק. מטא גובה לפי תעבורת ההודעות מהרגע שהחשבון פעיל.
הערה על צילומי המסך: מטא מציגה גרסאות ממשק שונות למשתמשים שונים, אז יכולים להיות הבדלים קטנים בין מה שאתם רואים למה שמופיע כאן. סדר הפעולות והשמות של השדות זהים.

1פרטי העסק ב-Business Manager

נכנסים לפרופיל הפייסבוק שמאפשר גישה ל-Business Manager של החברה, ומשם ל-business.facebook.com/settings.

פותחים את לשונית Business Info ומוודאים שכל הפרטים מוזנים. אם השדות ריקים, ממלאים אותם עכשיו. מטא משווה בהמשך בין מה שכתוב כאן לבין מה שמופיע באתר, וכל פער מעכב את האימות.

1Business settings › Business info › Edit business information
Meta
Business settings
B [שם חשבון ה-Business Manager]

Edit business information

[השם המלא כפי שמופיע ברשם החברות]
Israel
[רחוב ומספר]
[עיר]
[מיקוד]
[טלפון העסק]
[https://your-domain.com]
Tax ID will be used to find potential matching business records.
[ח.פ. או מספר עוסק מורשה]
Save
  1. 1השם המלא של החברה, בדיוק כפי שהוא מופיע בתעודת ההתאגדות או בתעודת עוסק מורשה. מטא מקבלת כאן גם עברית וגם אנגלית. אם החברה רשומה בשתי הצורות, הזינו את זו שמופיעה במסמך הרשמי, ודאגו שאותה צורה מופיעה גם באתר.
  2. 2בוחרים Israel מהרשימה.
  3. 3כתובת החברה, אותה כתובת שמופיעה באתר ובדף העסקי. אם יש כמה סניפים, בוחרים אחד ונשארים איתו.
  4. 4מספר טלפון כפי שהוא מופיע באתר. מספרי כוכבית, 1-800 ו-1-700 לא מתקבלים כאן.
  5. 5כתובת האתר ב-https. מטא נותנת לשדה הזה משקל רב בבדיקת האימות, אז כדאי לוודא שהכתובת נכונה ושהאתר עולה.
  6. 6ח.פ. או מספר עוסק מורשה. השדה מסומן כרשות, וכדאי למלא אותו כי הוא עוזר למטא לאמת את העסק מול הרשומות הרשמיות.

2יצירת האפליקציה וחיבור ה-webhook

האפליקציה היא המעטפת שדרכה מטא נותנת גישה ל-API. יוצרים אותה פעם אחת ומשתמשים בה לאורך כל הדרך.

2Business settings › Accounts › Apps
Meta
Business settings
B [שם חשבון ה-Business Manager]
Users
People
Partners
System users
Accounts1
Pages
Ad accounts
Business asset groups
Apps2
Instagram accounts
WhatsApp Accounts
Data Sources
Brand safety and suitabil…
Registrations
Integrations
Billing & payments
Security Center
Requests
Notifications
Business info
Apps
Filter by name or ID
Add 3
[שם האפליקציה]

[שם האפליקציה]

Linked Dataset: [שם האפליקציה]  ID: [app id]
Owned by: [שם חשבון ה-Business Manager]  ID: [business id]
Remove Open in App Dashboard
Add people Assign partners Add assets
PeoplePartners Connected assets

People

Add people

These people have access to [שם האפליקציה]. You can view, edit or delete their permissions. Your app need at least one app admin in order to access the app dashboard and reduce the risks of missing important actions.

Search by ID or name
[team member]
[team member]
  1. 1פותחים את Accounts בתפריט הצד.
  2. 2לוחצים על תת הלשונית Apps.
  3. 3לוחצים על Add. אם הכפתור אפור ולא לחיץ, המשמעות היא שהפרופיל האישי שלכם עוד לא מאומת אצל מטא כמפתח. פותחים חשבון מפתח ב-developers.facebook.com מאותו פרופיל, וחוזרים לכאן.
3התפריט שנפתח מתחת ל-Add
Meta
Business settings
B [שם חשבון ה-Business Manager]
Users
People
Partners
System users
Accounts
Pages
Ad accounts
Business asset groups
Apps
Instagram accounts
WhatsApp Accounts
Data Sources
Brand safety and suitabil…
Registrations
Integrations
Billing & payments
Security Center
Requests
Notifications
Business info
Apps
Filter by name or ID
Add
Connect an app ID
Claim an app for your Meta Business Account.
Request Access to an App ID
Request access to an app ID on behalf of another business.
+
Create a new app ID1
You can create a new app ID for your business.
  1. 1בוחרים Create a new app ID.
4Meta for Developers › Create an app
Meta for Developers DocsToolsSupport My Apps 3 Search developer documentation [your name]
Create an app
✕ Cancel

Which use case do you want to add to your app?

Get started by selecting the main use case you'd like to add to your app. You'll be asked to add permissions to your use case later.

f Set up Facebook Login Our most common use case. A secure, fast and convenient way for users to log into your app, and for your app to ask for permissions to access their data. Learn More
Other Explore other products and data permissions such as ads management, gaming and more. You'll be asked to select an app type and then you can add the permissions and products you need. 1
Next2
  1. 1בוחרים Other. האפשרות הראשונה מיועדת להתחברות עם פייסבוק ולא רלוונטית כאן.
  2. 2לוחצים Next.
5Create an App › Select an app type
Meta for Developers DocsToolsSupport My Apps 3 Search developer documentation [your name]
Type
Details

Select an app type

The app type can't be changed after your app is created. Learn more

Business Create or manage business assets like Pages, Events, Groups, Ads, Messenger, WhatsApp and Instagram Graph API using the available business permissions, features and products. 1
Consumer Connect consumer products and permissions, like Facebook Login and Instagram Basic Display to your app.
Instant Games Create an HTML5 game hosted on Facebook.
Gaming Connect an off-platform game to Facebook Login.
Workplace Create enterprise tools for Workplace from Meta.
Academic research Connect to Facebook data and tooling to perform research on Facebook.
None Create an app with combinations of consumer and business permissions and products.
Next2
  1. 1בוחרים Business. זה הסוג היחיד שנותן גישה ל-WhatsApp.
  2. 2לוחצים Next. שימו לב שאי אפשר לשנות את סוג האפליקציה אחרי היצירה.
6Create an App › Details
Meta for Developers DocsToolsSupport My Apps 3 Search developer documentation [your name]
Type
Details
This is the app name that will show on your My Apps page and associated with your app ID. You can change the name later in Settings.
[שם האפליקציה] 17/30
This is the email address we'll use to contact you about your app. Make sure it is an address you check regularly.
Connecting a Business Account to your app is only required for certain products and permissions.
[שם חשבון ה-Business Manager]
By proceeding, you agree to the Meta Platform Terms and Developer Policies. Previous Create app4
  1. 1שם לאפליקציה, לבחירתכם. משהו שתזהו בעוד שנה, למשל שם החברה ואחריו WA.
  2. 2כתובת המייל שאליה מטא תפנה בנוגע לאפליקציה. בדקו שהיא כתובה נכון, כי התראות על חסימות מגיעות לשם.
  3. 3חשבון ה-Business Manager שאליו האפליקציה משויכת. אם יש לכם כמה, בחרו את זה שמילאתם בו את פרטי העסק בשלב 1.
  4. 4לוחצים Create app.
7App Dashboard › רשימת המוצרים
Meta for Developers App Dashboard DocsToolsSupport My Apps 3 Search developer documentation [your name]
[שם האפליקציה] App ID: [app id] App Mode: Development Live App type: Business Help
Dashboard
Required actions
Settings
App Roles
Alerts
App Review
Products
Webhooks
WhatsApp
Quickstart
API Setup
Configuration
Activity log
Activity log

Instagram Graph API

Integrate your app with the Instagram API to let businesses use your app with their Instagram accounts.

Read Docs Set up

Jobs

Post jobs to the Facebook platform and receive applications from users.

Read Docs Set up

Marketing API

Integrate Facebook Marketing API with your app.

Read Docs Set up

Messenger

Customize the way you interact with people on Messenger.

Read Docs Set up

Web Payments

Accept in-app payments through Facebook's secure payment system.

Read Docs Set up

ThreatExchange

Share and learn about potential threats to help everyone stay more secure.

Read Docs Set up

Webhooks

Subscribe to changes and receive updates in real time without calling the API.

Read Docs Set up

WhatsApp

Integrate with WhatsApp

Read Docs Set up1

Facebook Login for Business

A secure way for businesses to give your app permissions to access data.

Read Docs Set up
  1. 1גוללים למטה עד לקובייה של WhatsApp ולוחצים Set up.
8חלונית WhatsApp Business Platform API

WhatsApp Business Platform API

[שם חשבון ה-Business Manager]
You will receive a WhatsApp test phone number to send messages to a maximum of 5 phone numbers.
By continuing, you agree to the Facebook Terms for WhatsApp Business and the Meta Hosting Terms for Cloud API.
Continue2
  1. 1מוודאים שחשבון ה-Business Manager שמופיע הוא הנכון.
  2. 2לוחצים Continue. אם מופיעה כאן שגיאה שלא מאפשרת להתקדם, החשבון חסום להקמת שירות הודעות. פונים לתמיכה של פייסבוק דרך סימן השאלה בתחתית תפריט הצד ב-Business Manager. יש שם צ'אט בעברית, והם עונים מהר.
9WhatsApp › Quickstart › Getting started
Meta for Developers App Dashboard DocsToolsSupport My Apps 3 Search developer documentation [your name]
[שם האפליקציה] App ID: [app id] App Mode: Development Live App type: Business Help
Dashboard
Required actions
Settings
App Roles
Alerts
App Review
Products
Webhooks
WhatsApp
Quickstart
API Setup
Configuration
Activity log
Activity log
Step 2: Send messages with the API
To send a test message, copy this command, paste it into Terminal, and press enter. To create your own message template, click here.
  1. curl -i -X POST `
  2. https://graph.facebook.com/v17.0/[phone number id]/messages `
  3. -H 'Authorization: Bearer [permanent access token]' `
  4. -H 'Content-Type: application/json' `
  5. -d '{ "messaging_product": "whatsapp", "to": "", "type": "template", "template": { "name": "hello_world", "language": { "code": "en_US" } } }'
Run in Postman Send message
Step 3: Configure webhooks to receive messages
Create a custom webhook URL or use services that help you set up an endpoint. Configure webhooks1
Step 4: Learn about the API and build your app
Review the developer documentation to learn how to build your app and start sending messages. See documentation
Step 5: Add a phone number
To start sending messages to any WhatsApp number, add a phone number.
Add phone number
Step 6: Add payment method
Add a payment method to send business-initiated messages to your customers.
Add payment method
  1. 1לוחצים על הקישור Configure webhooks בשלב 3. הבלוק עם פקודת ה-curl שמעליו הוא הודעת בדיקה שמטא מכינה מראש, ואפשר להתעלם ממנו בשלב הזה.
10WhatsApp › Configuration, לפני שהוגדר משהו
Quickstart > Configuration

Webhook

To get alerted when you receive a message or when a message's status has changed, you need to set up a Webhooks endpoint for your app. Learn how to configure Webhooks.

Callback URL
No URL added
Verify token
No token added
Edit1
Webhook fields
No fields selected
Manage2

Permanent token

Phone numbers

You have 2 production numbers and 1 test number.

Manage phone numbers
  1. 1לוחצים על Edit. בשלב הזה כתוב עדיין No URL added ו-No token added, כי החיבור עוד לא הוגדר.
  2. 2שימו לב ש-Manage מול Webhook fields אפור ולא לחיץ. הוא ייפתח רק אחרי ששומרים כתובת וטוקן, אז זו הסיבה לעשות את השלבים בסדר הזה.
אם אנחנו ב-Automation Flow מקימים לכם את האוטומציה, את החלק הזה אנחנו עושים. את ההתקנה של n8n, את החיבור אליו ואת האוטומציה עצמה אנחנו בונים אצלנו, ולכן אין צורך שתגדירו כאן כלום. מה שצריך מכם:
  1. לדלג מכאן לשלב 3 ולהשלים את המדריך עד הסוף.
  2. להעביר לנו בסיום את חמשת הערכים שמופיעים בפרק האחרון.
עם הערכים האלה נגדיר את הווב-הוק מהצד שלנו, ולא תצטרכו לחזור לממשק של מטא. ההסבר שממשיך מכאן מיועד למי שמחבר את המערכת בעצמו.

בחלונית שנפתחת ממלאים שני ערכים:

Callback URL הוא הכתובת שאליה מטא תשלח כל הודעה נכנסת. ב-n8n זו כתובת ה-Production URL של צומת Webhook בתוך ה-workflow שמטפל בהודעות. מעתיקים אותה מתוך הצומת. הכתובת חייבת להיות ב-https ונגישה מהאינטרנט, אז workflow שרץ במצב Test לא יעבוד כאן.

Verify token הוא מחרוזת שאתם ממציאים. מטא שולחת אותה חזרה פעם אחת כדי לוודא שהכתובת באמת שלכם. מייצרים מחרוזת אקראית, מדביקים אותה גם כאן וגם בהגדרות הצומת ב-n8n, ושומרים עותק במקום מאובטח. חשוב שהמחרוזת תהיה ייחודית לכם. יש ברשת מדריכים שמציעים טוקן מוכן להעתקה, ועדיף לוותר על זה, כי מי שמכיר את המחרוזת יכול לרשום את עצמו כמאזין לכתובת שלכם.

לוחצים Verify and save. מטא שולחת בקשה לכתובת באותו רגע ומצפה לתשובה נכונה, אז הכתובת חייבת להיות חיה. כתובת זמנית או מקום שמור לא יעברו את הבדיקה. אם n8n לא מחזיר את התשובה הצפויה תוצג שגיאה מיד, ואז כדאי לוודא שה-workflow פעיל ושהמחרוזת זהה בשני הצדדים.

11WhatsApp › Configuration אחרי שמירת ה-webhook
Quickstart > Configuration

Webhook

To get alerted when you receive a message or when a message's status has changed, you need to set up a Webhooks endpoint for your app. how to configure Webhooks.

Callback URL
https://[n8n שלכם]/webhook/whatsapp
Verify token
••••••••••••
Edit
Webhook fields
No fields selected 1
Manage2

Permanent token

Phone numbers

You have 2 production numbers and 1 test number.

Manage phone numbers
  1. 1כרגע כתוב No fields selected. מטא לא תשלח שום דבר עד שנבחר אילו אירועים מעניינים אותנו.
  2. 2לוחצים Manage מול Webhook fields.
12חלונית Webhook fields, החלק העליון

Webhook fields

Successfully subscribed to the template_category_update v17.0 webhook field at 12:02:03 AM
NameTest versionSubscription version Subscribe 1
account_alerts v17.0 Test v17.0
account_review_update v17.0 Test v17.0
account_update v17.0 Test v17.0
business_capability_update v17.0 Test v17.0
business_status_update v17.0 Test v17.0
campaign_status_update v17.0 Test v17.0
message_template_quality_update v17.0 Test v17.0
message_template_status_update v17.0 Test v17.0
messages v17.0 Test v17.0
  1. 1מסמנים את כל תיבות הסימון בעמודת Subscribe.
13אותה חלונית, אחרי גלילה למטה

Webhook fields

NameTest versionSubscription version Subscribe
messages v17.0 Test v17.0
phone_number_name_update v17.0 Test v17.0
phone_number_quality_update v17.0 Test v17.0
security v17.0 Test v17.0
template_category_update v17.0 Test v17.0
1 scroll inside the table Done2
  1. 1בחלונית הזו יש שתי גלילות, אחת של הדף ואחת של הטבלה עצמה. קל לפספס את השורות התחתונות. גוללים בתוך הטבלה עד הסוף ומסמנים גם אותן.
  2. 2לוחצים Done.

3הגדרת מספר הטלפון

14WhatsApp › API Setup
Meta for Developers App Dashboard DocsToolsSupport My Apps 3 Search developer documentation [your name]
[שם האפליקציה] App ID: [app id] App Mode: Development Live App type: Business Help
Dashboard
Required actions
Settings
App Roles
Alerts
App Review
Products
Webhooks
WhatsApp
Quickstart
API Setup1
Configuration
Activity log
Activity log
Step 2: Send messages with the API
To send a test message, copy this command, paste it into Terminal, and press enter. To create your own message template, click here.
  1. curl -i -X POST `
  2. https://graph.facebook.com/v17.0/[phone number id]/messages `
  3. -H 'Authorization: Bearer [permanent access token]' `
  4. -H 'Content-Type: application/json' `
  5. -d '{ "messaging_product": "whatsapp", "to": "", "type": "template", "template": { "name": "hello_world", "language": { "code": "en_US" } } }'
Run in Postman Send message
Step 3: Configure webhooks to receive messages
Create a custom webhook URL or use services that help you set up an endpoint. Configure webhooks
Step 4: Learn about the API and build your app
Review the developer documentation. See documentation
Step 5: Add a phone number
To start sending messages to any WhatsApp number, add a phone number. To manage your account information and phone number, see the Overview page.
Add phone number2
Step 6: Add payment method
Add a payment method to send business-initiated messages.
Add payment method
  1. 1עוברים ללשונית API Setup בתפריט הצד.
  2. 2לוחצים Add phone number בשלב 5.
15חלונית Create a WhatsApp Business profile

Create a WhatsApp Business profile

This profile will show information about your business to people on WhatsApp. You can edit this information anytime by going to Business assets in Meta Business Suite Settings and selecting this WhatsApp account.

[שם התצוגה של המותג]
(GMT+03:00) Asia/Jerusalem
Choose a business category
[תיאור קצר של העסק] 0/512
BackNext
  1. 1שם השולח. זה השם שהלקוחות יראו בוואטסאפ, וזה השדה שהכי הרבה חשבונות נתקעים עליו. הוא צריך לייצג נאמנה את המותג ששולח את ההודעות, להופיע כטקסט חי באתר החברה, ולהופיע גם בפרטי העסק ב-Business Manager. שם כללי מדי, למשל "שירות לקוחות", בדרך כלל לא יאושר. ההנחיות המלאות של מטא.
  2. 2קטגוריית עסק. בוחרים מהרשימה. אם אין קטגוריה שמתאימה, בוחרים Other.
  3. 3תיאור העסק. שדה רשות, עד 512 תווים, וניתן לעריכה בכל שלב.
16חלונית אימות המספר

Choose how you would like to verify your number

Select how you would like to verify your number. If you are using a landline number, choose phone call.

Phone number
[טלפון העסק]
Text message
1
Phone call
Back Next2
  1. 1מזינים את המספר בפורמט בינלאומי ובוחרים איך לאמת אותו. למספר קווי בוחרים שיחה קולית.
  2. 2לוחצים Next. מטא שולחת קוד, ומזינים אותו בחלונית שנפתחת.
17המסך אחרי האימות: ארבעת הערכים
Meta for Developers App Dashboard DocsToolsSupport My Apps 3 Search developer documentation [your name]
[שם האפליקציה] App ID: [app id] 1 App Mode: Development Live App type: Business Help
Dashboard
Required actions
Settings
App Roles
Alerts
App Review
Products
Webhooks
WhatsApp
Quickstart
API Setup
Configuration
Activity log
Activity log
Quickstart > Getting started
You have alerts that need review. Go to WhatsApp Manager

Temporary access token

EAAJ…[temporary token]
Copy Refresh This token will expire in 23 hours.

Send and receive messages

Step 1: Select phone numbers

From

Send free messages with the provided test phone number. Learn more.

[טלפון העסק]
2
Phone number ID: [phone number id]
3
WhatsApp Business Account ID: [waba id]
4
To
US +1
Phone number
Step 2: Send messages with the API
To send a test message, copy this command, paste it into Terminal, and press enter. To create your own message template, click here.
  1. curl -i -X POST `
  2. https://graph.facebook.com/v17.0/[phone number id]/messages `
  3. -H 'Authorization: Bearer [permanent access token]' `
  4. -H 'Content-Type: application/json' `
  5. -d '{ "messaging_product": "whatsapp", "to": "", "type": "template", "template": { "name": "hello_world", "language": { "code": "en_US" } } }'
Run in Postman Send message
  1. 1App ID.
  2. 2Phone Number, המספר שאימתתם.
  3. 3Phone number ID. זה המזהה שמערכת ההודעות משתמשת בו כדי לשלוח, ולא המספר עצמו.
  4. 4WhatsApp Business Account ID. מעתיקים את כל הערכים האלה למקום בטוח. תצטרכו אותם בחיבור ל-n8n.
18Settings › Basic
Meta for Developers App Dashboard DocsToolsSupport My Apps 3 Search developer documentation [your name]
[שם האפליקציה] App ID: [app id] App Mode: Development Live App type: Business Help
Dashboard
Required actions
Settings1
Basic2
Advanced
App Roles
Alerts
App Review
Products
Webhooks
WhatsApp
Quickstart
API Setup
Configuration
Activity log
Activity log
[app id]
••••••••
Show4
[שם האפליקציה]
Privacy policy for Login dialog and app details
Terms of Service for Login dialog and App Details
  1. 1משכפלים את לשונית הדפדפן ובחדשה עוברים ל-Settings.
  2. 2לוחצים על Basic.
  3. 3מאתרים את השדה App secret.
  4. 4לוחצים Show. מטא עשויה לבקש את סיסמת הפייסבוק שוב. מעתיקים את הערך ושומרים אותו איתם השאר.
19WhatsApp › Configuration
Meta for Developers App Dashboard DocsToolsSupport My Apps 3 Search developer documentation [your name]
[שם האפליקציה] App ID: [app id] App Mode: Development Live App type: Business Help
Dashboard
Required actions
Settings
App Roles
Alerts
App Review
Products
Webhooks
WhatsApp
Quickstart
API Setup
Configuration1
Activity log
Activity log
Quickstart > Configuration

Webhook

To get alerted when you receive a message or when a message's status has changed, you need to set up a Webhooks endpoint for your app.

Callback URL
https://[n8n שלכם]/webhook/whatsapp
Verify token
••••••••••
Edit
Webhook fields
account_alerts, account_review_update, account_update, business_capability_update, campaign_status_update, message_template_quality_update, message_template_status_update, messages, phone_number_name_update, phone_number_quality_update, security, template_category_update

Permanent token

Phone numbers

You have 2 production numbers and 1 test number.

Manage phone numbers2
  1. 1עוברים ל-Configuration בתפריט הצד.
  2. 2לוחצים Manage phone numbers, ואז על המספר עצמו.

במסך שנפתח מעלים תמונת פרופיל למספר, בדרך כלל הלוגו. התמונה חייבת להיות ריבועית, לפחות 640 פיקסל לכל צלע. אפשר להוסיף שם גם כתובת אתר ופרטי התקשרות.

שומרים בכפתור בפינה העליונה. את הפרטים האלה אפשר לעדכן מתי שרוצים.

4הוספת אמצעי תשלום

20WhatsApp › API Setup › Step 6
Meta for Developers App Dashboard DocsToolsSupport My Apps 3 Search developer documentation [your name]
[שם האפליקציה] App ID: [app id] App Mode: Development Live App type: Business Help
Dashboard
Required actions
Settings
App Roles
Alerts
App Review
Products
Webhooks
WhatsApp
Quickstart
API Setup
Configuration
Activity log
Activity log
Step 2: Send messages with the API
To send a test message, copy this command, paste it into Terminal, and press enter. To create your own message template, click here.
  1. curl -i -X POST `
  2. https://graph.facebook.com/v17.0/[phone number id]/messages `
  3. -H 'Authorization: Bearer [permanent access token]' `
  4. -H 'Content-Type: application/json' `
  5. -d '{ "messaging_product": "whatsapp", "to": "", "type": "template", "template": { "name": "hello_world", "language": { "code": "en_US" } } }'
Run in Postman Send message
Step 3: Configure webhooks to receive messages
Create a custom webhook URL or use services that help you set up an endpoint. Configure webhooks
Step 4: Learn about the API and build your app
Review the developer documentation. See documentation
Step 5: Add a phone number
To start sending messages to any WhatsApp number, add a phone number.
Add phone number
Step 6: Add payment method
Add a payment method to send business-initiated messages to your customers. After you use 1000 free user-initiated conversations each month, you will also need to have a payment method.
Add payment method1
  1. 1לוחצים Add payment method.
21מסך אמצעי התשלום
No payment methods added
Add a payment method to have more than 1,000 monthly free tier conversations with this WhatsApp Business account.
Add payment method1
  1. 1לוחצים Add payment method בחלק התחתון של המסך ומזינים פרטי אשראי ופרטים לחשבונית. כדאי לשים לב: ממלאים את הפרטים גם אם בחלק העליון של המסך כבר מופיעים פרטי תשלום. אלה שתי הגדרות נפרדות, וזו נקודה שקל לפספס.

אפשר להשתמש באותם פרטים שכבר מוזנים בחשבון דרך האפשרות Payment Method, או להזין כרטיס חדש דרך Credit Card. אחרי ההזנה נפתחת חלונית פרטי החשבונית.

5יצירת System User

System User הוא משתמש שאינו אדם. הוא קיים כדי להחזיק את הטוקן שהמערכת שלכם משתמשת בו. היתרון: כשעובד עוזב או מחליף סיסמה, החיבור ממשיך לעבוד.

22Business settings › Users › System users
Meta
Business settings
B [שם חשבון ה-Business Manager]
Users
People
Partners
System users1
Accounts
Pages
Ad accounts
Business asset groups
Apps
Instagram accounts
WhatsApp Accounts
Data Sources
Brand safety and suitabil…
Registrations
Integrations
Billing & payments
Security Center
Requests
Notifications
Business info
System users
Filter by name or ID
Add2
n8n API User
Admin system user
n8n API User
Admin access
Edit
Generating Access Tokens. System Users can only generate access tokens for permissions their app has been granted through App Review.
Generate new token Revoke tokens Add assets

Assigned assets

Add assets

Here are the assets n8n API User (System User) can access. View and manage their permissions. Add or remove assets.

Search by ID or name
Apps
[שם האפליקציה]
  1. 1חוזרים ל-Business Manager ופותחים Users › System users.
  2. 2לוחצים Add.
23חלונית Create system user

Create system user

Enter a name for the system user you want to create below:

n8n API User
Admin

[שם חשבון ה-Business Manager] will be the owner of this system user.

Cancel Create system user3
  1. 1שם למשתמש. השם לא משפיע על התפעול, אז כדאי לבחור משהו שמסביר למה הוא משמש, למשל n8n API User.
  2. 2מגדירים אותו כ-Admin. אם הממשק לא מאפשר, בוחרים Employee ומתקדמים.
  3. 3לוחצים Create system user.

6הקצאת הרשאות ל-System User

בשלב הזה יש שלוש הקצאות נפרדות, וכדאי לעבור על כולן לפי הסדר. אם אחת מהן חסרה, הטוקן ייווצר כרגיל אבל יחזיר שגיאת הרשאות בניסיון הראשון לשלוח הודעה, וקשה לאתר את זה בדיעבד.

24א. הרשאה לאפליקציה
Meta
Business settings
B [שם חשבון ה-Business Manager]
Users
People
Partners
System users
Accounts1
Pages
Ad accounts
Business asset groups
Apps2
Instagram accounts
WhatsApp Accounts
Data Sources
Brand safety and suitabil…
Registrations
Integrations
Billing & payments
Security Center
Requests
Notifications
Business info

Add people to [שם האפליקציה]

Select people
Search & filter
1 Person Selected
n8n API User (System User) 3
Assign access
App · Partial access
Develop app
Can change app settings, test the app and view analytics.
View insights
Can view app analytics.
Test app
Can test the app.
Full control
Manage app
Can manage roles, change app settings, test the app and view analytics.
4
Assign5
  1. 1פותחים Accounts בתפריט הצד.
  2. 2לוחצים Apps ועומדים על האפליקציה שיצרתם.
  3. 3לוחצים Add people ומסמנים את ה-System User.
  4. 4תחת Full control מעבירים את הטוגל של Manage app למצב מופעל.
  5. 5לוחצים Assign.
25ב. הרשאה לחשבון הוואטסאפ
Meta
Business settings
B [שם חשבון ה-Business Manager]
Users
People
Partners
System users
Accounts1
Pages
Ad accounts
Business asset groups
Apps
Instagram accounts
WhatsApp Accounts2
Data Sources
Brand safety and suitabil…
Registrations
Integrations
Billing & payments
Security Center
Requests
Notifications
Business info

Add people to [שם חשבון הוואטסאפ]

Select people
Search & filter
1 Person Selected
n8n API User (System User) 3
Assign access
WhatsApp account · Partial access
Manage phone numbers and message templates
You can create message templates, add phone numbers, access metrics and send messages to customers.
Full control
Manage WhatsApp business accounts
You can do all of the above, and also assign users and view payment information.
4
Assign5
  1. 1פותחים שוב Accounts.
  2. 2לוחצים WhatsApp Accounts ועומדים על החשבון שנוצר.
  3. 3נכנסים ל-People, לוחצים Add people ומסמנים את אותו System User.
  4. 4תחת Full control מפעילים את Manage WhatsApp business accounts.
  5. 5לוחצים Assign.
26ג. שיוך האפליקציה כנכס של המשתמש
Meta
Business settings
B [שם חשבון ה-Business Manager]
Users
People
Partners
System users1
Accounts
Pages
Ad accounts
Business asset groups
Apps
Instagram accounts
WhatsApp Accounts
Data Sources
Brand safety and suitabil…
Registrations
Integrations
Billing & payments
Security Center
Requests
Notifications
Business info

Assign Assets to n8n API User

Select asset type
Pages
Ad accounts
Catalogs
Apps2
Pixels
Instagram accounts
Datasets
Select assets
Search & filter
[שם האפליקציה] 3
App · Partial access
Develop app
Can change app settings and view analytics.
View insights
Can view app analytics.
Test app
Can test the app.
Full control
Manage app
Can manage roles, change app settings and view analytics.
4
Cancel Save changes5
  1. 1פותחים Users › System users ועומדים על המשתמש.
  2. 2לוחצים Add Assets ובוחרים Apps.
  3. 3מסמנים את האפליקציה שיצרתם.
  4. 4תחת Full control מפעילים את Manage app.
  5. 5לוחצים Save changes.

7הפקת הטוקן הקבוע

27Users › System users › המשתמש שיצרתם
n8n API User
Employee access
Generating Access Tokens. System Users can only generate access tokens for permissions their app has been granted through App Review.
Generate new token1 Revoke tokens Add assets
  1. 1לוחצים Generate new token.
28חלונית Generate token

Generate token

[שם האפליקציה]
Select the length of time you'd like this token to be valid for. Learn about token expiration.
60 days
Permanent
2
Generating Access Tokens. The list of available scopes is based on previously granted permissions for this app. To access additional permissions, submit your request through App Review on the app dashboard.
  1. 1בוחרים את האפליקציה שיצרתם.
  2. 2מסמנים Permanent. האפשרות של 60 ימים מתאימה לבדיקות. בחשבון שעובד בפועל, טוקן שפג תוקפו מנתק את החיבור בלי התראה מראש.
29רשימת ההרשאות, אחרי גלילה למטה
whatsapp_business_messaging 1
ads_management
pages_read_user_content
publish_pages
pages_manage_posts
business_creative_management
whatsapp_business_management 2
attribution_read
commerce_account_read_settings
private_computation_access
instagram_manage_messages
pages_manage_instant_articles
read_page_mailboxes
instagram_content_publish
pages_manage_engagement

By clicking 'Generate token', you agree to install selected app for system user API User.

Cancel Generate token3
  1. 1מסמנים את whatsapp_business_messaging.
  2. 2מסמנים את whatsapp_business_management. אלה שתי ההרשאות שצריך. השאר יכולות להישאר כבויות.
  3. 3לוחצים Generate token.
30חלון הטוקן

Generate token

An access token has been generated for [שם חשבון ה-Business Manager] as following:
System user: n8n API User
Assigned app: [שם האפליקציה]
Access token:
******************************
******************************
******************************
****************
1

Copy and save this token as it won't be stored at Facebook.

OK
  1. 1מעתיקים את הטוקן לפני שסוגרים את החלון. מטא לא שומרת אותו, ואין דרך להציג אותו שוב מאוחר יותר. אם החלון נסגר לפני שהספקתם, אפשר לייצר טוקן חדש ולחזור על השלב.

מה יהיה לכם בסוף התהליך

בסוף ההקמה יהיו לכם חמישה ערכים. אלה פרטי החיבור של חשבון ההודעות, וכל מערכת שתנהל את הוואטסאפ תבקש אותם:

  • WhatsApp Business Account ID, המזהה של חשבון הוואטסאפ העסקי
  • Phone Number ID, המזהה של המספר שאימתתם
  • App Secret, המפתח הסודי של האפליקציה
  • App ID, המזהה של האפליקציה שיצרתם
  • הטוקן הקבוע, שמאפשר למערכת להתחבר בשם החשבון

מומלץ לשמור את כולם במקום מאובטח, למשל במנהל סיסמאות ארגוני. בפועל קורה שהפרטים מגיעים בהתחלה בקובץ אקסל או במייל, וזה בסדר כשלב ביניים. כדאי להעביר אותם משם ברגע שההקמה מסתיימת.

שווה לשים לב לטוקן הקבוע במיוחד: הוא מאפשר לשלוח הודעות בשם העסק, והוא נשאר בתוקף עד שמבטלים אותו ידנית מהממשק. לכן נוח לתת גישה אליו רק למי שבאמת עובד מול החיבור.

אם דילגתם על הווב-הוק בשלב 2 כי אנחנו מקימים לכם את האוטומציה, החשבון תקין ומוכן והעבודה שלכם נגמרה כאן. חמשת הערכים שלמעלה זה כל מה שאנחנו צריכים כדי לחבר את המערכת.

השלב הבא הוא תבניות ההודעות. כל הודעה שהעסק יוזם צריכה אישור מראש של מטא, וזה תהליך נפרד עם כללים משלו. נרחיב עליו במדריך נפרד.

כל צילומי המסך במדריך הזה נבנו מחדש ב-HTML. הם מציגים את מבנה המסכים של מטא עם פרטים מוסתרים, כדי שלא יופיעו כאן שמות חשבונות או מזהים של אף אחד.

עוד מהבלוג

Cookies Time 🍪

אנחנו אוספים עוגיות רק כדי לוודא שאתם מקבלים חוויה מהירה, חכמה ומהנה יותר. נשארים איתנו? סימן שאתם בעניין. למידע נוסף