---
title: "تكامل GitHub Copilot مع Instagram وWhatsApp وLinkedIn · Spaces"
description: "أضف رسائل Instagram وWhatsApp وLinkedIn وMessenger وTelegram إلى تطبيقك في GitHub Copilot عبر Spaces: واجهة API واحدة، وتعليمات (prompt) جاهزة للصق، وبلا مراجعة تطبيق من Meta."
url: https://www.spacesos.com/ar/build-with/github-copilot
---

# رسائل Instagram وWhatsApp وLinkedIn في تطبيقك على GitHub Copilot

GitHub Copilot يبني تطبيقات في VS Code وعلى GitHub (وضع الوكيل ووكيل البرمجة). يمنح Spaces هذا التطبيق واجهة API واحدة لرسائل Instagram وWhatsApp وLinkedIn وFacebook Messenger وTelegram: اقرأ المحادثات وردّ عليها وتابع ما وصل، دون تطبيق مطوّرين ودون مراجعة على كل شبكة.

[احصل على مفتاح API مجاني](https://app.spacesos.com/signup) انسخ التعليمات (prompt)

حسب القناة: [GitHub Copilot + WhatsApp](https://www.spacesos.com/ar/build-with/github-copilot/whatsapp) · [GitHub Copilot + Instagram](https://www.spacesos.com/ar/build-with/github-copilot/instagram) · [GitHub Copilot + LinkedIn](https://www.spacesos.com/ar/build-with/github-copilot/linkedin) · [GitHub Copilot + Facebook Messenger](https://www.spacesos.com/ar/build-with/github-copilot/messenger) · [GitHub Copilot + Telegram](https://www.spacesos.com/ar/build-with/github-copilot/telegram)

## أربع خطوات

1. ### احصل على مفتاح Spaces
  سجّل مجانًا، واربط الحساب الذي تريد التجربة عليه، وأنشئ مفتاح API من الإعدادات (Settings)، ضمن Developers.
2. ### أضفه إلى GitHub Copilot
  احفظه في متغيرات البيئة، وأسرار Codespaces أو Actions، باسم SPACES_API_KEY.
3. ### الصق التعليمات (prompt)
  أعطِ GitHub Copilot التعليمات أدناه. سيقرأ دليل Spaces الموجّه للوكلاء ويبني صندوق الوارد، مستدعيًا Spaces من كود الخادم أو مسارات API الخاصة بك.
4. ### جرّبه على محادثة حقيقية
  اطلب من صديق أن يراسل الحساب المتصل، ثم ردّ من تطبيقك.

## التعليمات (prompt) لـ GitHub Copilot: حساباتك الخاصة

لصندوق وارد أو لوحة تحكم أو وكيل ذكاء اصطناعي يرد على رسائل نشاطك التجاري.

تبقى التعليمات (prompt) بالإنجليزية: يفهمها GitHub Copilot، وتطابق وثائق Spaces حرفيًا.

```
Add Spaces to this app so it can read and answer my Instagram, WhatsApp, LinkedIn, Messenger and Telegram messages.

First read https://www.spacesos.com/llms.txt. My Spaces API key is in a secret called SPACES_API_KEY. Call https://api.spacesos.com/v1 only from your own server code or API routes, with the header "Authorization: Bearer <key>". Never send the key to the browser.

Build:
1. A list of my connected accounts: GET /messaging/accounts.
2. The chats of one account: GET /messaging/accounts/{account_id}/chats, newest first.
3. The messages of one chat: GET /messaging/accounts/{account_id}/chats/{chat_id}/messages.
4. A reply box: POST /messaging/accounts/{account_id}/chats/{chat_id}/messages with {"text": "..."} and an Idempotency-Key header, a new one for each message.

Show Spaces' error messages as they are. On 429, wait retry_after_seconds before trying again. Do not send the same message to many people.
```

أعطِ وكيل البرمجة التعليمات (prompt) في issue، وأبقِ SPACES_API_KEY في أسرار المستودع.

## أضف خادم Spaces MCP إلى GitHub Copilot

أضف https://api.spacesos.com/mcp كخادم MCP بعيد (streamable HTTP) وسجّل الدخول بحساب Spaces عند الطلب. بهذا يستطيع الوكيل عرض حساباتك وقراءة محادثة حقيقية أثناء البناء، فيطابق الكود ما يعيده Spaces.

## التعليمات (prompt) لـ GitHub Copilot: حسابات مستخدميك

لمنتج يربط فيه كل مستخدم حسابه الخاص في Instagram أو WhatsApp أو LinkedIn. يتطلب هذا حساب شريك، وهو متاح بوصول مبكر: راسل hello@spacesos.com، أو اقرأ صفحة Spaces لشركات SaaS. [Spaces for SaaS](https://www.spacesos.com/ar/saas)

```
Add Spaces to this app so each of my users can connect their own Instagram, WhatsApp, LinkedIn, Messenger or Telegram account and answer their messages inside the app.

First read https://www.spacesos.com/docs/partners. My Spaces partner key is in a secret called SPACES_PARTNER_KEY. Call https://api.spacesos.com/v1 only from your own server code or API routes. Never send a key to the browser.

Build:
1. When a user opens messaging settings: POST /partner/users with {"external_user_id": "<our user id>"} (safe to repeat), then POST /partner/users/{id}/keys to get that user's key, and store it with the user, encrypted.
2. A "Connect Instagram" (or WhatsApp, LinkedIn...) button: POST /partner/users/{id}/connect-links with {"channel": "instagram", "return_url": "<this page>"} and send the user to the link.
3. With that user's key: their accounts (GET /messaging/accounts), chats, messages and a reply box, as in https://www.spacesos.com/llms.txt.

Show Spaces' error messages as they are, and wait retry_after_seconds on 429.
```

## آمن للحسابات

- يُضبط إيقاع كل حساب ضمن حدود كل شبكة، وتخضع الحسابات الجديدة لتسخين تدريجي على أربعة أسابيع.
- تُفحص الرسائل التي يكتبها أشخاص آخرون قبل أن يقرأها وكيل الذكاء الاصطناعي.
- الرسائل المتكررة إلى أشخاص كثيرين تنتظر موافقة شخص عليها.

[الحدود لكل قناة](https://www.spacesos.com/limits)

## أسئلة

### هل يستطيع تطبيق على GitHub Copilot إرسال رسائل Instagram وWhatsApp وLinkedIn؟

نعم، عبر Spaces. يستدعي التطبيق واجهة Spaces API من كود الخادم أو مسارات API الخاصة بك، ويقرأ Spaces ويرسل على الحسابات المتصلة به: Instagram وWhatsApp وLinkedIn وFacebook Messenger وTelegram.

### هل أحتاج إلى تطبيق مطوّرين من Meta أو LinkedIn؟

لا. تُربط الحسابات عبر رابط من Spaces، مع رمز QR لـ WhatsApp وتسجيل دخول عادي للبقية. لا توجد مراجعة تطبيق عليك اجتيازها على كل شبكة.

### أين أضع مفتاح API؟

في متغيرات البيئة، وأسرار Codespaces أو Actions. استدعِ Spaces من كود الخادم أو مسارات API الخاصة بك فقط، ولا تستدعِه أبدًا من كود يعمل في المتصفح.

### هل يستطيع الأشخاص الذين يستخدمون تطبيقي ربط حساباتهم الخاصة؟

نعم. مع حساب شريك، يحصل كل مستخدم لديك على مستخدم في Spaces ومفتاح خاص به، ويربط حساباته عبر رابط يعرض اسم تطبيقك. حسابات الشركاء متاحة حاليًا بوصول مبكر؛ اطّلع على Spaces لشركات SaaS.

### هل توجد خطة مجانية؟

نعم. تتضمن الخطة المجانية حسابًا واحدًا متصلًا و20 إجراءً في اليوم، دون بطاقة، وهذا يكفي للبناء والتجربة. أما الدفع حسب الاستخدام فهو $19 شهريًا لكل حساب مع 200 إجراء لكل حساب في اليوم، ثم $0.005 للإجراء الواحد. قراءة الرسائل مجانية دائمًا.

### هل ستُحظر حساباتي؟

يضبط Spaces إيقاع كل حساب ضمن حدود كل شبكة، ويسخّن الحسابات الجديدة على أربعة أسابيع، ويحتجز الرسائل المتكررة لتوافق عليها. لا تستطيع أي أداة أن تعد بأن منصة لن تقيّد حسابًا أبدًا، لذا ابنِ تطبيقك للرد على أشخاص راسلوك، لا للرسائل الجماعية الباردة.

تبني بأداة أخرى؟ [Cursor](https://www.spacesos.com/ar/build-with/cursor) · [Claude Code](https://www.spacesos.com/ar/build-with/claude-code) · [Codex](https://www.spacesos.com/ar/build-with/codex) · [Windsurf](https://www.spacesos.com/ar/build-with/windsurf) · [Google Antigravity](https://www.spacesos.com/ar/build-with/antigravity) · [Jules](https://www.spacesos.com/ar/build-with/jules) · [Cline](https://www.spacesos.com/ar/build-with/cline) · [Kilo Code](https://www.spacesos.com/ar/build-with/kilo-code) · [كل الأدوات الـ 49](https://www.spacesos.com/ar/build-with)

## تطبيقك على GitHub Copilot، يرد على Instagram وWhatsApp وLinkedIn.

ابدأ مجانًا بحساب واحد و20 إجراءً في اليوم. دون الحاجة إلى بطاقة.

[ابدأ مجانًا](https://app.spacesos.com/signup)

تُرجمت هذه الصفحة آليًا. النسخة الإنجليزية هي المرجع. [اقرأ هذه الصفحة بالإنجليزية](https://www.spacesos.com/build-with/github-copilot)
