دليل خطوة بخطوة لربط بيانات اعتماد X (Twitter) API الخاصة بك مع Ayrshare
في 31 مارس 2026، غيّرت X طريقة وصول المنصات الخارجية إلى واجهة برمجة التطبيقات الخاصة بها. نتيجةً لذلك، يجب على كل حساب Ayrshare يُنشر على X عبر Ayrshare أن يُسجّل تطبيق X Developer الخاص به وأن يستخدم API Key وAPI Secret الخاصين به في كل طلب.هذا تغيير على مستوى المنصة تفرضه X ويؤثر على جميع الأدوات الخارجية.
مفاتيح BYO تُعيَّن مرة واحدة لكل منصة (على مستوى الحساب)، وليس لكل عميل أو ملف تعريف فرعي. تُنشئ تطبيق X Developer واحدًا ضمن حساب X الخاص بك، ويُطبَّق نفس API Key + API Secret على مستوى الحساب لـ X — يُستخدمان لـ كل ملف تعريف فرعي / مستخدم نهائي يربط X ضمن حساب Ayrshare الخاص بك. إذا كانت لديك خطة Business أو Enterprise بمئات من الملفات الفرعية، فأنت لا تحتاج إلى تكرار هذا الإعداد لكل منها. تقوم بإعداده مرة واحدة لمنصة X، ثم تمرّر نفس الترويستين على كل طلب.
لقد بسّطنا عملية الإعداد لجعل هذا الأمر بسيطًا قدر الإمكان، ويجب أن يستغرق إكماله أقل من 10 دقائق. اتبع دليلنا خطوة بخطوة أدناه، وإذا كنت بحاجة إلى أي مساعدة على طول الطريق، فإن فريقنا هنا للمساعدة.
تقوم بإنشاء تطبيق X Developer واحد فقط لكل حساب Ayrshare. يُعاد استخدام نفس التطبيق و API Key + API Secret الخاصين به لكل ملف تعريف فرعي / مستخدم نهائي تربطه لاحقًا ضمن حساب Ayrshare الخاص بك. أنت لا تُنشئ تطبيقًا جديدًا لكل عميل.
1
انتقل إلى Apps
في Developer Console، انتقل إلى Apps.
2
أنشئ التطبيق
في لوحة تحكم App، انقر على Create App (راجع مستندات إعداد التطبيق من X للتفاصيل). أدخل اسم التطبيق (عادةً اسم علامتك التجارية). سيظهر هذا الاسم في شاشة تفويض OAuth عندما يربط المستخدمون حساب X الخاص بهم.
3
اختر البيئة
اختر بيئة Production في القائمة المنسدلة.
ضع تطبيقك في حزمة Pay-per-use. يجب أن يكون تطبيقك في حزمة Pay-per-use، في بيئة Production، وليس في Standalone. وإلا سيفشل ربط حساب X الخاص بك مع خطأ 403 “Client Forbidden” (client-not-enrolled).
4
أغلق نافذة بيانات الاعتماد الأولية
ستُنشئ X عدة بيانات اعتماد. تجاهل هذه البيانات وأغلق هذه النافذة.
الخطوة 3: تكوين أذونات التطبيق
1
افتح إعدادات تطبيقك
ضمن “Apps”، حدّد موقع التطبيق الجديد (قم بتحديث الصفحة إذا لم يظهر)، ثم انقر عليه لعرض تفاصيله.ضمن User authentication settings، انقر على Set up.
2
عيّن أذونات التطبيق
ضمن App permissions، اختر Read and write and Direct message. هذا مطلوب لدعم كامل الميزات، بما في ذلك النشر والرسائل المباشرة.
3
عيّن نوع التطبيق
ضمن Type of App، اختر Web App, Automated App or Bot. هذا هو الخيار الصحيح لتكاملات الخوادم مثل Ayrshare.
4
عيّن عناوين URL للاستدعاء والموقع الإلكتروني
ضمن App info:
Callback URL: أضف عنواني URL الاستدعاء التاليين:
https://profile.ayrshare.com/social-accounts
https://app.ayrshare.com/social-accounts
Website URL:https://app.ayrshare.com
لا تتخطَّ هذه الخطوة. عناوين URL الاستدعاء هذه مطلوبة لتدفق ربط OAuth. عندما يُخوّل المستخدمون النهائيون اتصال X، تُعيدهم X إلى أحد هذه العناوين لإكمال عملية الربط. إذا كانت هذه مفقودة، سيفشل تدفق OAuth مع خطأ 403 Callback URL not approved.
5
احفظ إعداداتك
انقر على Save. يمكنك تجاهل النافذة المنبثقة لـ OAuth 2.0، حيث ستستخدم فقط 2 من مفاتيح OAuth 1.0 (API Key وAPI Secret).
مهم: عيّن الأذونات قبل الربط. تحدد الأذونات التي تختارها هنا ما يمكن لتطبيقك القيام به. إذا غيّرت الأذونات بعد ربط حسابك على X عبر OAuth، ستحتاج إلى إعادة الربط بحيث يرث Access Token الجديد الأذونات المُحدَّثة.
يرجى التأكد من تخزين هذين المفتاحين:
API Key (المعروف أيضًا بـ Consumer Key، مُعرِّف تطبيق X)
API Secret (المعروف أيضًا بـ Consumer Secret)
أنت لا تحتاج إلى إنشاء Access Tokens يدويًا. يتعامل Ayrshare مع ذلك تلقائيًا عندما تربط حساب X الخاص بك عبر OAuth.
الخطوة 4: شراء أرصدة X API
تستخدم X الآن فوترة API قائمة على الأرصدة، تُشترى عبر لوحة تحكم المطور.
1
انتقل إلى الفوترة
في Developer Console، انقر على Billing → Credits في الشريط الجانبي الأيسر.
2
اشترِ الأرصدة
اشترِ الأرصدة (الحد الأدنى هو $5، وهو كافٍ لمئات من استدعاءات API). كل استدعاء API هو جزء من سنت واحد، لذا يجب أن تكون التكلفة ضئيلة لمعظم المستخدمين.
3
فعّل الشحن التلقائي
يمكنك تفعيل auto-recharge لتجنّب انقطاع الخدمة، وإدارة سقف الإنفاق بتعيين الحد الأقصى للمبلغ الذي يمكنك إنفاقه في دورة الفوترة.
ستفشل استدعاءات API الخاصة بك دون أرصدة. واجهة برمجة تطبيقات X تعمل بنظام الدفع لكل استخدام. إذا كان رصيدك صفرًا، فسيُعيد كل طلب API خطأ 402 CreditsDepleted مع الرسالة “Your enrolled account does not have any credits to fulfill this request.” يشمل هذا النشر وقراءة التغريدات والبحث عن المستخدمين. حمّل الأرصدة قبل اختبار تكاملك. راجع كيف تعمل أسعار X API للحصول على تحديث كامل بشأن أسعار X.
الخطوة 5: تحديث استدعاءات Ayrshare API الخاصة بك
في الخطوة 3، حفظت هذين العنصرين بأمان في env أو config أو مدير الأسرار الخاص بك:
API Key (المعروف أيضًا بـ Consumer Key، مُعرِّف تطبيق X)
API Secret (المعروف أيضًا بـ Consumer Secret)
الآن، أضف بيانات اعتماد X الخاصة بك إلى ترويسات استدعاءات Ayrshare API.
مفاتيحك تبقى خاصة. يُستخدم مفتاح API و«سر» API الذي ترسله في هذه الترويسات لهذا الطلب وحده، ولا تخزّنهما Ayrshare. الاستثناء الوحيد هو إنشاء رابط ربط، وهو موضّح في قسم الأمان أدناه.
مرجع الترويسات
الترويسة
القيمة
X-Twitter-OAuth1-Api-Key
API Key (Consumer Key)
X-Twitter-OAuth1-Api-Secret
API Key Secret (Consumer Secret)
كيف تعرف ما إذا كانت أذوناتك غير صحيحة:
إذا كانت أذونات تطبيقك مُهيَّأة بشكل خاطئ، قد يُعيد طلب API خطأ 403 Forbidden مع الرسالة: “Your client app is not configured with the appropriate OAuth1 app permissions.”
إذا رأيت هذا الخطأ، حدّث أذونات تطبيقك إلى Read and write and Direct message في X Developer Console، ثم أعِد ربط حساب X الخاص بك عبر OAuth حتى يرث Access Token الجديد الأذونات المُحدَّثة.
أمثلة الكود
curl -X POST https://api.ayrshare.com/api/post \ -H "Authorization: Bearer YOUR_AYRSHARE_API_KEY" \ -H "X-Twitter-OAuth1-Api-Key: your_api_key" \ -H "X-Twitter-OAuth1-Api-Secret: your_api_secret" \ -H "Content-Type: application/json" \ -d '{"post": "Hello from my own X App!", "platforms": ["twitter"]}'
const response = await fetch("https://api.ayrshare.com/api/post", { method: "POST", headers: { "Authorization": "Bearer YOUR_AYRSHARE_API_KEY", "Content-Type": "application/json", "X-Twitter-OAuth1-Api-Key": process.env.X_API_KEY, "X-Twitter-OAuth1-Api-Secret": process.env.X_API_SECRET, }, body: JSON.stringify({ post: "Hello from my own X App!", platforms: ["twitter"], }),});
import osimport requestsheaders = { "Authorization": "Bearer YOUR_AYRSHARE_API_KEY", "Content-Type": "application/json", "X-Twitter-OAuth1-Api-Key": os.environ["X_API_KEY"], "X-Twitter-OAuth1-Api-Secret": os.environ["X_API_SECRET"],}response = requests.post( "https://api.ayrshare.com/api/post", headers=headers, json={"post": "Hello from my own X App!", "platforms": ["twitter"]},)
ستستمر أتمتة سير العمل الحالية لديك في العمل طالما أنك تُضمِّن ترويسات API Key وAPI Secret في كل طلب يستهدف X.
ترحيل الملفات الشخصية الموجودة (Business وEnterprise)
إذا كانت لديك ملفات فرعية مرتبطة بالفعل بـ X عبر Ayrshare، فإن هذه الملفات تحتاج إلى إعادة ربط حسابات X الخاصة بها بعد التبديل إلى مفاتيح BYO. هذا لأن رموز الوصول الحالية قد صدرت ضمن تطبيق X الخاص بـ Ayrshare ولا يمكن استخدامها مع مفاتيحك الاستهلاكية (توقيعات OAuth 1.0a مرتبطة بالتطبيق الذي أصدر الرمز).
1
ضمّن مفاتيحك في generateJWT
أضف twitterApiKey وtwitterApiSecret إلى جسم استدعاء generateJWT الخاص بك. يتم تشفيرهما وتخزينهما مع جلسة الربط، ولا يتم كشفهما لمستخدميك النهائيين.
إنشاء رابط ربط هو الموضع الوحيد الذي تُرسل فيه consumer keys داخل الجسم: هذا الطلب، أو POST /profiles/link-sessions. وكل طلب آخر إلى X يستخدم الترويسات الموضحة أعلاه.
2
اطلب من المستخدمين إعادة ربط X
بعد إنشاء JWT مع تضمين المفاتيح، يحتاج المستخدمون إلى إعادة توصيل حساب X الخاص بهم من خلال صفحة ربط الملف الشخصي. ستُظهر شاشة موافقة OAuth الآن اسم تطبيقك بدلاً من اسم Ayrshare.لتبسيط ذلك، يمكنك:
إلغاء ربط الحسابات برمجيًا عبر Unlink API، ثم اطلب من المستخدمين إعادة التفويض
استخدام معلمة logout في generateJWT لفرض تسجيل دخول جديد
استخدام allowedSocial لعرض X فقط في صفحة الربط أثناء تدفق الترحيل
3
استمر في إرسال الترويسات في جميع استدعاءات API
بعد إعادة الربط، استمر في تضمين ترويستي X-Twitter-OAuth1-Api-Key وX-Twitter-OAuth1-Api-Secret في كل استدعاء API (النشر، التحليلات، التعليقات، إلخ).
بمجرد أن يُعيد ملف تعريف الربط ضمن تطبيق X الخاص بك، ستستخدم جميع المنشورات اللاحقة لذلك الملف الشخصي بيانات اعتمادك. يمكنك التحقق من ذلك بفحص صفحة الاستخدام في X Developer Console الخاص بك.
تحقق من الإعداد
قم بإجراء استدعاء اختباري عبر Ayrshare API مع ترويساتك الجديدة للتأكد من أن كل شيء يعمل. نقطة النهاية /analytics/social هي اختبار خفيف جيد، حيث لن تُنشئ أي منشورات.
كيف تعمل أسعار X API
سابقًا، كان Ayrshare يغطي تكلفة استخدام X API نيابةً عنك. بموجب النموذج الحالي لـ X، يحتفظ كل عميل Ayrshare بحساب X Developer الخاص به ويدفع لـ X مباشرة مقابل طلبات API التي يُجريها تطبيقه. (حساب X Developer واحد لكل حساب Ayrshare، وليس لكل مستخدم نهائي. جميع ملفاتك الفرعية تشترك في نفس حساب X Developer ورصيد الأرصدة.)نموذج تسعير X هو الدفع لكل استخدام: تشتري الأرصدة في X Developer Console، ويتم خصمها مع إجراء طلبات API. لا حاجة إلى عقود أو اشتراكات.العمليات النموذجية غير مكلفة. على سبيل المثال:
العملية
التكلفة التقريبية
إنشاء منشور (نص فقط)
~$0.01 لكل منشور
إنشاء منشور مع وسائط
~$0.02 لكل منشور (تحميل الوسائط وإنشاء المنشور طلبان منفصلان)
قراءة منشور
~$0.005 لكل قراءة
بحث عن المستخدم
~$0.01 لكل بحث
إرسال رسالة مباشرة (DM)
~$0.01 لكل رسالة
قراءة أحداث DM
~$0.01 لكل حدث
تفاعلات المستخدم (متابعة، إعجاب، إلخ)
~$0.015 لكل طلب
للسياق، إذا كنت تنشر حوالي 100 مرة شهريًا، فستكون تكلفة X المباشرة لديك حوالي $1، والمنشورات مع الوسائط ستكون تقريبًا $2 شهريًا.
تسعير X الدفع لكل استخدام حاليًا في مرحلة تجريبية. الأسعار قابلة للتغيير، وقد تُقدَّم تكاليف إضافية. تحقق دائمًا من Developer Console للحصول على أحدث الأسعار. راجع تفاصيل معلومات أسعار X.
نعلم أن هذا يُقدّم تكلفة لم تكن موجودة من قبل، ونريد أن نكون شفافين بشأن ذلك. في الوقت نفسه، يُتيح هذا النموذج أيضًا عدة فوائد لم تكن ممكنة في إعداد المفتاح المشترك السابق.
فوائد استخدام مفتاح X API الخاص بك
يوفر استخدام بيانات اعتماد X API الخاصة بك مزيدًا من التحكم والموثوقية مقارنةً بنموذج المفتاح المشترك السابق. يشمل ذلك:
تجربة OAuth ذات علامة تجارية: يرى المستخدمون اسم تطبيقك وعلامتك التجارية عند تفويض الوصول إلى X.
حدود معدل مخصصة: يخضع استخدامك لـ API لحدود حساب X Developer الخاص بك، بشكل منفصل عن مستخدمي Ayrshare الآخرين. يمكنك مراقبة استخدامك في X Developer Console ومراجعة مستندات حدود معدل X API.
التحكم في بيانات الاعتماد: يبقى مفتاح API و«السر» الخاصان بك في حساب X Developer الخاص بك. ولا تخزّن Ayrshare المفاتيح التي ترسلها في ترويسات الطلبات. الاستثناء الوحيد هو إنشاء رابط ربط، وهو موضّح في قسم الأمان أدناه.
قابلية النقل: لأن المستخدمين يُصادقون بتطبيق X الخاص بك، يبقى تكاملك تحت سيطرتك الكاملة.
رؤية الاستخدام: تعرض لوحة تحكم X Developer الخاصة بك طلبات API وحدود المعدل واستخدام الأرصدة.
X هي أول منصة تتطلب هذا النموذج، لكن المزيد من المنصات تتحرك نحو “أحضر مفتاح API الخاص بك”. نحن نُوسّع هذه الإمكانية عبر Ayrshare، لكي يحصل المطورون على نفس التحكم والاستقلالية عبر جميع المنصات الاجتماعية.
الأمان
يُستخدم مفتاح API و«سر» API الذي ترسله في ترويسات الطلبات لهذا الطلب وحده، ولا تخزّنهما Ayrshare.
إنشاء رابط الربط هو الاستثناء. عندما تُرسل twitterApiKey وtwitterApiSecret إلى POST /profiles/generateJWT أو POST /profiles/link-sessions، يُشفَّر الزوج ويُخزَّن مع جلسة الربط تلك، لأن صفحة الربط تحتاج إليه عندما يمنح مستخدمك الإذن لـ X بعد لحظات. ويُحذف عندما تُبطل الرابط، أو عند فتح رابط منتهي الصلاحية أو الاستعلام عنه في المرة التالية، وفي جميع الأحوال يُحذف مع سجل الجلسة في غضون 30 يومًا.
لا. تقوم بإعداد تطبيق X Developer واحد ضمن حساب X الخاص بك، ويُعاد استخدام نفس API Key + API Secret لكل ملف تعريف فرعي / مستخدم نهائي تربطه ضمن حساب Ayrshare الخاص بك.
تُنشئ تطبيق X Developer مرة واحدة.
تُمرِّر نفس الترويستين (X-Twitter-OAuth1-Api-Key وX-Twitter-OAuth1-Api-Secret) في كل استدعاء Ayrshare API، بغض النظر عن الملف الشخصي الفرعي المقصود.
لا يزال يتعين على المستخدمين النهائيين لديك المرور بتدفق ربط OAuth لتفويض حساب X الخاص بهم، لكنهم لا يحتاجون إلى تطبيق X Developer أو مفاتيح API الخاصة بهم. يتصلون عبر تطبيقك.
تشترك جميع الملفات الفرعية في نفس حساب X Developer، ونفس حدود المعدل، ونفس رصيد الأرصدة.
الوقت الوحيد الذي تتعامل فيه مع المفاتيح لكل ملف تعريف هو في جسم generateJWT أثناء الترحيل، وهي لا تزال نفس المفتاحين، فقط يتم توصيلهما إلى صفحة الربط بحيث يمكن للمستخدمين النهائيين إعادة التفويض ضمن تطبيقك.
هل متطلب X API key نشط الآن؟
نعم. اعتبارًا من 31 مارس 2026، تتطلب جميع عمليات X عبر Ayrshare بيانات اعتماد X API الخاصة بك. إذا لم تُعدّ حساب X Developer الخاص بك بعد، فاتبع الخطوات أعلاه.
ماذا يحدث إذا لم أُضِف مفتاح X API الخاص بي إلى Ayrshare؟
يتطلب النشر على X عبر Ayrshare بيانات اعتماد X API الخاصة بك. يتم رفض الطلبات دون بيانات اعتماد BYO صالحة. لا يتأثر النشر على المنصات الأخرى (Instagram وLinkedIn وFacebook وTikTok، إلخ).
ما تكلفة X API؟
تفرض X رسومًا لكل استدعاء API. إنشاء منشور يكلف حوالي $0.01، وقراءة منشور تكلف حوالي $0.005. على سبيل المثال، نشر 100 منشور شهريًا سيكلف حوالي $1. راجع صفحة أسعار X للتفاصيل الكاملة.
هل يُغيّر هذا سعر اشتراك Ayrshare الخاص بي؟
لا. سعر اشتراك Ayrshare الخاص بك يبقى كما هو. التكلفة الإضافية الوحيدة هي رسوم استخدام X API التي تُفوترها X مباشرةً عبر حساب المطور الخاص بك.
هل يُخزّن Ayrshare بيانات اعتماد X API الخاصة بي؟
بالنسبة إلى طلبات API العادية، لا: يُستخدم مفتاح API و«سر» API الذي ترسله في الترويسات لهذا الطلب وحده ولا يُخزَّن. أما إنشاء رابط الربط فهو الاستثناء، لأن صفحة الربط تحتاج إلى الزوج عندما يمنح مستخدمك الإذن لـ X. وهناك يُشفَّر ويُخزَّن مع جلسة الربط، ثم يُحذف عندما تُبطل الرابط، أو عند فتح رابط منتهي الصلاحية أو الاستعلام عنه في المرة التالية، أو مع سجل الجلسة في غضون 30 يومًا. راجع قسم الأمان أعلاه، ودليل أمان المصادقة من X للممارسات العامة.
لديّ بالفعل حساب X Developer. هل يمكنني استخدام مفتاحي الحالي؟
نعم. يمكنك استخدام تطبيق X الحالي طالما أن لديه أذونات “Read and write” مُفعَّلة (وDirect Messages إذا كنت تستخدم ميزات الرسائل المباشرة).ستحتاج إلى API Key (Consumer Key) وAPI Secret (Consumer Secret) من قسم Keys and tokens في X Developer Console. اربط حساب X الخاص بك عبر OAuth، ثم ضمّن هاتين الترويستين في طلبات Ayrshare API.إذا غيّرت أذونات تطبيقك منذ الإعداد الأولي، أعِد ربط حساب X الخاص بك بحيث يرث Access Token الأذونات المُحدَّثة.
يعرض X Developer Portal العديد من بيانات الاعتماد. أيها أحتاج فعلاً؟
تحتاج إلى API Key (Consumer Key) وAPI Secret (Consumer Secret). راجع جدول مرجع الترويسات أعلاه لمعرفة أي ترويسة Ayrshare يتم ربطها بكل منهما. يمكنك تجاهل Client ID وClient Secret وBearer Token وAccess Token وAccess Token Secret.
ما الفرق بين 'API Key' و'Client ID'؟
هما بيانات اعتماد مختلفة تمامًا لطرق مصادقة مختلفة:
API Key (يُسمى أيضًا “Consumer Key”) لـ OAuth 1.0a. API Key (Consumer Key) + API Secret هو ما يستخدمه Ayrshare. يعمل مع جميع ميزات X، والرموز لا تنتهي أبدًا، ولا حاجة إلى منطق تجديد.
Client ID لـ OAuth 2.0. أنت لا تحتاج إليه لـ Ayrshare. تنتهي رموز OAuth 2.0 بعد فترة قصيرة وتتطلب إدارة رمز تجديد.
لـ Ayrshare، تحتاج فقط إلى API Key وAPI Secret. يمكنك تجاهل Client ID وClient Secret وBearer Token.
لماذا OAuth 1.0a وليس OAuth 2.0؟
تنتهي رموز الوصول لـ OAuth 2.0 كل ساعتين ورموز تجديد X تُستخدم مرة واحدة (كل تجديد يُبطِل الرمز القديم). هذا يجعل من المستحيل دعم نموذج BYO عديم الحالة، خاصةً للمنشورات المجدولة. لا تنتهي رموز OAuth 1.0a أبدًا، وتعمل مع جميع ميزات X، ولا تتطلب أي إدارة للرموز.
هل يحتاج مستخدموي الحاليون إلى إعادة ربط حسابات X الخاصة بهم؟
نعم. إذا ربط مستخدموك X عبر Ayrshare قبل إعدادك لمفاتيح BYO، فسيحتاجون إلى إعادة الاتصال. رموز الوصول الحالية صدرت ضمن تطبيق X الخاص بـ Ayrshare ولن تعمل مع مفاتيحك الاستهلاكية. راجع ترحيل الملفات الشخصية الموجودة أعلاه للاطلاع على العملية خطوة بخطوة.
هل يؤثر هذا التغيير على النشر إلى Instagram أو LinkedIn أو منصات أخرى؟
لا. يؤثر هذا التغيير فقط على النشر إلى X. جميع تكاملات المنصات الأخرى في Ayrshare تستمر في العمل كالمعتاد.
ماذا عن النشر التلقائي عبر RSS/Feed إلى X؟
لم يعد النشر التلقائي عبر RSS إلى X مدعومًا. تعمل خلاصات RSS تلقائيًا وفقًا لجدول زمني، لكن نموذج أحضر مفتاح API الخاص بك يتطلب توفير بيانات الاعتماد مع كل طلب API. لهذا السبب، لا يمكن لخلاصات RSS المصادقة عند إرسال المنشور.إذا كنت تستخدم RSS سابقًا للنشر إلى X، فإننا نوصي بالتبديل إلى المنشورات المجدولة أو استدعاءات API المباشرة التي تتضمن بيانات اعتمادك. النشر التلقائي عبر RSS إلى جميع المنصات الأخرى دون تغيير.
لماذا أحصل على خطأ 402 "CreditsDepleted"؟
يعني هذا أن حساب X Developer الخاص بك لا يحتوي على أرصدة API متاحة. انتقل إلى console.x.com ← Billing → Credits واشترِ الأرصدة. حتى $5 كافٍ لمئات من استدعاءات API. بمجرد تحميل الأرصدة، أعِد محاولة طلبك.
لماذا أحصل على خطأ 403 "Forbidden: OAuth1 App Permissions"؟
Access Token الخاص بك لا يحتوي على الأذونات الصحيحة. يعني هذا عادةً واحدًا من أمرين:
أذونات تطبيقك مُعيَّنة على “Read” بدلاً من “Read and write”. انتقل إلى Settings الخاص بتطبيقك في Developer Console وغيّره إلى Read and write and Direct message.
غيّرت الأذونات بعد ربط حساب X الخاص بك. تحتفظ Access Tokens بالأذونات التي أُنشئت بها. أعِد ربط حساب X الخاص بك عبر OAuth بحيث يرث الرمز الجديد الأذونات المُحدَّثة.
ماذا لو احتجت إلى مساعدة في الإعداد؟
فريق الدعم لدينا سعيد بالمساعدة. إذا كانت لديك أي أسئلة أو واجهت مشكلات أثناء الإعداد، يرجى التواصل عبر support@ayrshare.com، وسنُرشدك خلال العملية.
استكشاف الأخطاء وإصلاحها
أحصل على خطأ 400 حول ترويسات مفقودة
تأكد من أنك ترسل كلتا الترويستين المطلوبتين:
X-Twitter-OAuth1-Api-Key
X-Twitter-OAuth1-Api-Secret
إذا رأيت خطأ عدم تطابق الزوج (على سبيل المثال، “You provided Api-Key but not Api-Secret”)، فهذا يعني أن أحدهما مفقود. كلاهما مطلوبان دائمًا.ستُخبرك رسالة الخطأ بالترويسة المفقودة تحديدًا.
أحصل على خطأ 403: "Callback URL not approved"
إذا رأيت هذا الخطأ عند محاولة ربط حساب X الخاص بك، تأكد من إضافة عناوين URL الاستدعاء المطلوبة إلى إعدادات تطبيق X Developer الخاص بك (ضمن Authentication settings > Callback URI / Redirect URL):
حساب X Developer الخاص بك لا يحتوي على أرصدة API مُحمَّلة. انتقل إلى console.x.com ← Billing → Credits واشترِ الأرصدة. حتى $5 كافٍ لمئات من استدعاءات API.
أحصل على خطأ 403: "oauth1 app permissions"
Access Token الخاص بك لا يحتوي على الأذونات الصحيحة. يعني هذا عادةً:
أذونات تطبيقك مُعيَّنة على “Read” بدلاً من “Read and write”. انتقل إلى Settings الخاص بتطبيقك في Developer Console وغيّره إلى Read and write and Direct message.
غيّرت الأذونات بعد ربط حساب X الخاص بك. تحتفظ Access Tokens بالأذونات التي أُنشئت بها. أعِد ربط حساب X الخاص بك عبر OAuth بحيث يرث الرمز الجديد الأذونات المُحدَّثة.
أحصل على خطأ 403: "Client Forbidden" (client-not-enrolled)
تطبيق X الخاص بك غير مُسجَّل في X API v2. يحدث هذا عندما يكون التطبيق في حزمة Standalone.في X Developer Console، انقل التطبيق من Standalone إلى حزمة Pay-per-use (بيئة Production)، ثم أعِد ربط حساب X الخاص بك. راجع الخطوة 2: إنشاء تطبيق أعلاه.
تحتاج إلى مساعدة؟
إذا كانت لديك أي أسئلة أو واجهت مشكلات أثناء إعداد مفتاح X API الخاص بك، فإن فريقنا الهندسي سعيد بالمساعدة. يمكنك التواصل معنا في أي وقت على support@ayrshare.com.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ayrshare Docs","colors":{"primary":"#2266C2","light":"#4985D8","dark":"#1A4E9A"},"logo":{"light":"https://mintcdn.com/ayrshare-docs/7bWzjvNjeuvs-M3N/images/logos/ayrshare-docs-logo-light.svg?fit=max\u0026auto=format\u0026n=7bWzjvNjeuvs-M3N\u0026q=85\u0026s=8d23367f493d06599eecbbfa2b6325cf","dark":"https://mintcdn.com/ayrshare-docs/7bWzjvNjeuvs-M3N/images/logos/ayrshare-docs-logo-dark.svg?fit=max\u0026auto=format\u0026n=7bWzjvNjeuvs-M3N\u0026q=85\u0026s=77590acef2781d2fec9a1b14b6e09b73","href":"https://www.ayrshare.com/docs"},"favicon":"https://mintcdn.com/ayrshare-docs/dKBti0xVDJrOZ19f/images/logos/icon-docs.png?fit=max\u0026auto=format\u0026n=dKBti0xVDJrOZ19f\u0026q=85\u0026s=9704762afaad78a9cfdd90a20cb1d253","api":{"playground":{"display":"simple"},"examples":{"languages":["bash","javascript","python","php","go","java"]},"mdx":{"auth":{"method":"bearer"},"server":"https://api.ayrshare.com/api"}},"appearance":{"default":"dark"},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"https://www.ayrshare.com/blog","label":"Blog"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.ayrshare.com"}},"footer":{"socials":{"github":"https://github.com/ayrshare","x":"https://x.com/ayrshare","bluesky":"https://bsky.app/profile/ayrshare.com","facebook":"https://www.facebook.com/Ayrshare","linkedin":"https://www.linkedin.com/company/ayrshare","youtube":"https://www.youtube.com/@ayrshare"}},"seo":{"indexing":"navigable"},"styling":{"codeblocks":"system","latex":true},"integrations":{"gtm":{"tagId":"GTM-P23WG8W"},"plausible":{"domain":"docs.ayrshare.com"}},"contextual":{"options":["copy","chatgpt","claude","perplexity","cursor","vscode"],"display":"header"},"navigation":{"languages":[{"language":"en","href":"introduction"},{"language":"es","href":"es/introduction"},{"language":"cn","hidden":true,"href":"cn/introduction"},{"language":"zh","hidden":true,"href":"zh/introduction"},{"language":"pt-BR","href":"pt-BR/introduction"},{"language":"fr","href":"fr/introduction"},{"language":"de","href":"de/introduction"},{"language":"vi","href":"vi/introduction"},{"language":"ja","href":"ja/introduction"},{"language":"uk","href":"uk/introduction"},{"language":"hi","href":"hi/introduction"},{"language":"ar","href":"ar/introduction"},{"language":"zh-Hans","href":"zh-Hans/introduction"},{"language":"zh-Hant","href":"zh-Hant/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ayrshare-docs","hasAudioNarration":false,"actualSubdomain":"ayrshare-docs","customDomains":["www.ayrshare.com"],"gitSource":{"type":"github","owner":"ayrshare","repo":"ayrshare_3","deployBranch":"docs-prod","contentDirectory":"apps/mintlify","isPrivate":true,"mountPath":"","label":"","_id":"6aec8a4b6de9d64b11a45855"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b10137244011f3d6e1be00b","clientVersion":"0.0.4410","searchFilterCounts":[{"language":"en","tag":"Documentation","count":262},{"language":"ar","tag":"Documentation","count":262},{"language":"de","tag":"Documentation","count":262},{"language":"es","tag":"Documentation","count":262},{"language":"fr","tag":"Documentation","count":262},{"language":"hi","tag":"Documentation","count":262},{"language":"ja","tag":"Documentation","count":262},{"language":"pt-BR","tag":"Documentation","count":262},{"language":"uk","tag":"Documentation","count":262},{"language":"vi","tag":"Documentation","count":262},{"language":"zh-Hans","tag":"Documentation","count":262},{"language":"zh-Hant","tag":"Documentation","count":262},{"language":"en","tag":"API Endpoints","count":183},{"language":"ar","tag":"API Endpoints","count":183},{"language":"de","tag":"API Endpoints","count":183},{"language":"es","tag":"API Endpoints","count":183},{"language":"fr","tag":"API Endpoints","count":183},{"language":"hi","tag":"API Endpoints","count":183},{"language":"ja","tag":"API Endpoints","count":183},{"language":"pt-BR","tag":"API Endpoints","count":183},{"language":"uk","tag":"API Endpoints","count":183},{"language":"vi","tag":"API Endpoints","count":183},{"language":"zh-Hans","tag":"API Endpoints","count":183},{"language":"zh-Hant","tag":"API Endpoints","count":183},{"language":"en","tag":"Help Center","count":126},{"language":"ar","tag":"Help Center","count":126},{"language":"de","tag":"Help Center","count":126},{"language":"es","tag":"Help Center","count":126},{"language":"fr","tag":"Help Center","count":126},{"language":"hi","tag":"Help Center","count":126},{"language":"ja","tag":"Help Center","count":126},{"language":"pt-BR","tag":"Help Center","count":126},{"language":"uk","tag":"Help Center","count":126},{"language":"vi","tag":"Help Center","count":126},{"language":"zh-Hans","tag":"Help Center","count":126},{"language":"zh-Hant","tag":"Help Center","count":126},{"language":"en","tag":"Ads","count":43},{"language":"ar","tag":"Ads","count":43},{"language":"de","tag":"Ads","count":43},{"language":"es","tag":"Ads","count":43},{"language":"fr","tag":"Ads","count":43},{"language":"hi","tag":"Ads","count":43},{"language":"ja","tag":"Ads","count":43},{"language":"pt-BR","tag":"Ads","count":43},{"language":"uk","tag":"Ads","count":43},{"language":"vi","tag":"Ads","count":43},{"language":"zh-Hans","tag":"Ads","count":43},{"language":"zh-Hant","tag":"Ads","count":43},{"language":"en","tag":"Additional","count":41},{"language":"ar","tag":"Additional","count":41},{"language":"de","tag":"Additional","count":41},{"language":"es","tag":"Additional","count":41},{"language":"fr","tag":"Additional","count":41},{"language":"hi","tag":"Additional","count":41},{"language":"ja","tag":"Additional","count":41},{"language":"pt-BR","tag":"Additional","count":41},{"language":"uk","tag":"Additional","count":41},{"language":"vi","tag":"Additional","count":41},{"language":"zh-Hans","tag":"Additional","count":41},{"language":"zh-Hant","tag":"Additional","count":41},{"language":"en","tag":"Technical Support","count":40},{"language":"ar","tag":"Technical Support","count":40},{"language":"de","tag":"Technical Support","count":40},{"language":"es","tag":"Technical Support","count":40},{"language":"fr","tag":"Technical Support","count":40},{"language":"hi","tag":"Technical Support","count":40},{"language":"ja","tag":"Technical Support","count":40},{"language":"pt-BR","tag":"Technical Support","count":40},{"language":"uk","tag":"Technical Support","count":40},{"language":"vi","tag":"Technical Support","count":40},{"language":"zh-Hans","tag":"Technical Support","count":40},{"language":"zh-Hant","tag":"Technical Support","count":40},{"language":"en","tag":"Post","count":22},{"language":"ar","tag":"Post","count":22},{"language":"de","tag":"Post","count":22},{"language":"es","tag":"Post","count":22},{"language":"fr","tag":"Post","count":22},{"language":"hi","tag":"Post","count":22},{"language":"ja","tag":"Post","count":22},{"language":"pt-BR","tag":"Post","count":22},{"language":"uk","tag":"Post","count":22},{"language":"vi","tag":"Post","count":22},{"language":"zh-Hans","tag":"Post","count":22},{"language":"zh-Hant","tag":"Post","count":22},{"language":"en","tag":"Dashboard","count":21},{"language":"ar","tag":"Dashboard","count":21},{"language":"de","tag":"Dashboard","count":21},{"language":"es","tag":"Dashboard","count":21},{"language":"fr","tag":"Dashboard","count":21},{"language":"hi","tag":"Dashboard","count":21},{"language":"ja","tag":"Dashboard","count":21},{"language":"pt-BR","tag":"Dashboard","count":21},{"language":"uk","tag":"Dashboard","count":21},{"language":"vi","tag":"Dashboard","count":21},{"language":"zh-Hans","tag":"Dashboard","count":21},{"language":"zh-Hant","tag":"Dashboard","count":21},{"language":"en","tag":"Product","count":16},{"language":"ar","tag":"Product","count":16},{"language":"de","tag":"Product","count":16},{"language":"es","tag":"Product","count":16},{"language":"fr","tag":"Product","count":16},{"language":"hi","tag":"Product","count":16},{"language":"ja","tag":"Product","count":16},{"language":"pt-BR","tag":"Product","count":16},{"language":"uk","tag":"Product","count":16},{"language":"vi","tag":"Product","count":16},{"language":"zh-Hans","tag":"Product","count":16},{"language":"zh-Hant","tag":"Product","count":16},{"language":"en","tag":"Facebook Ads","count":15},{"language":"ar","tag":"Facebook Ads","count":15},{"language":"de","tag":"Facebook Ads","count":15},{"language":"es","tag":"Facebook Ads","count":15},{"language":"fr","tag":"Facebook Ads","count":15},{"language":"hi","tag":"Facebook Ads","count":15},{"language":"ja","tag":"Facebook Ads","count":15},{"language":"pt-BR","tag":"Facebook Ads","count":15},{"language":"uk","tag":"Facebook Ads","count":15},{"language":"vi","tag":"Facebook Ads","count":15},{"language":"zh-Hans","tag":"Facebook Ads","count":15},{"language":"zh-Hant","tag":"Facebook Ads","count":15}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".center{display:block;margin-left:auto;margin-right:auto;max-width:100%;height:auto}.welcome-banner{margin-left:auto;margin-right:auto;max-width:100%;height:auto;border-radius:12px}.custom-bullets{padding-left:0}.custom-bullets li{position:relative;padding-left:1.5em;margin-bottom:0.75em;list-style-type:none;line-height:1.4}.custom-bullets li::before{content:\"\\2022\";color:#2266c2;position:absolute;left:0.5em;top:0}.custom-bullets li:last-child{margin-bottom:0}.custom-bullets li>*{margin-top:0;margin-bottom:0}ul ul{margin-left:20px}.custom-bullets li::after,.custom-bullets li::before{border:none!important;background:none!important}.button{background-color:#2266c2;color:#fff;padding:16px 24px;border-radius:8px;border:none;transition-duration:0.2s;margin-top:100px}.button:hover{background-color:#133e76;color:white}.button2{background-color:#fff;color:#2266c2;padding:16px 24px;border-radius:8px;border:1px solid #2266c2;transition-duration:0.2s}.button2:hover{background-color:#133e76;color:white}.video-container{width:100%;max-width:560px;margin:0 auto}.video-container iframe{width:100%;height:auto;aspect-ratio:16 / 9}.plan-tag-light{font-family:\"JetBrains Mono\", monospace;display:inline-block;padding:2px 6px;border-radius:4px;font-size:12px;color:#ffffff;background-color:#16171b;margin-right:10px}.plan-tag-dark{font-family:\"JetBrains Mono\", monospace;display:inline-block;padding:2px 6px;border-radius:4px;font-size:12px;color:#3f4144;background-color:#b7b9bb;margin-right:10px}@media (min-width: 768px){.video-container{display:flex;justify-content:center;align-items:center}}code{font-size:0.96em;line-height:1.7em}dialog.ayr-playground{padding:0;border:none;background:transparent;width:min(1100px, calc(100vw - 32px));max-width:none;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);margin:auto;overflow-y:auto}dialog.ayr-playground::backdrop{background:rgb(3 7 18 / 0.6);backdrop-filter:blur(2px)}.ayr-playground-card{--ayr-border: rgb(3 7 18 / 0.1);--ayr-muted-bg: rgb(3 7 18 / 0.03);border:1px solid var(--ayr-border);border-radius:16px;background:rgb(var(--background-light));box-shadow:0 24px 48px -12px rgb(0 0 0 / 0.35)}.dark .ayr-playground-card{--ayr-border: rgb(255 255 255 / 0.1);--ayr-muted-bg: rgb(255 255 255 / 0.04);background:rgb(var(--background-dark))}.ayr-playground-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1rem 0.75rem 1.25rem}.ayr-playground-close{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;color:rgb(107 114 128)}.ayr-playground-close:hover{background:var(--ayr-muted-bg);color:inherit}.ayr-playground-request{display:flex;align-items:stretch;gap:0.75rem;padding:0 1.25rem 1rem;border-bottom:1px solid var(--ayr-border)}.ayr-playground-url{display:flex;flex:1;min-width:0;align-items:center;gap:0.75rem;min-height:44px;padding:0 0.875rem;border:1px solid var(--ayr-border);border-radius:10px;background:var(--ayr-muted-bg)}.ayr-playground-send{flex-shrink:0;padding:0 1.25rem;border-radius:10px}.ayr-playground-url code{padding:0;border:none;background:none}.ayr-playground-method{flex-shrink:0;padding:0.125rem 0.5rem;border-radius:6px;background:rgb(34 197 94 / 0.15);color:rgb(21 128 61);font-size:0.75rem;font-weight:700}.dark .ayr-playground-method{color:rgb(74 222 128)}.ayr-playground-body{display:grid;gap:1.75rem;padding:1.25rem}@media (min-width: 768px){.ayr-playground-body{grid-template-columns:minmax(0, 5fr) minmax(0, 7fr)}}.ayr-playground-fields,.ayr-playground-output{display:flex;flex-direction:column;gap:1.5rem;min-width:0}.ayr-playground-section-title{display:flex;align-items:center;gap:0.5rem;margin-bottom:0.75rem;font-size:0.75rem;font-weight:600;letter-spacing:0.05em;text-transform:uppercase;color:rgb(107 114 128)}.ayr-playground-output .code-block,.ayr-playground-output .code-group{margin-top:0;margin-bottom:0}.ayr-playground-status{padding:0.0625rem 0.5rem;border-radius:9999px;font-size:0.75rem;letter-spacing:normal;text-transform:none}.ayr-playground-status.is-ok{background:rgb(34 197 94 / 0.15);color:rgb(21 128 61)}.ayr-playground-status.is-error{background:rgb(239 68 68 / 0.15);color:rgb(185 28 28)}.dark .ayr-playground-status.is-ok{color:rgb(74 222 128)}.dark .ayr-playground-status.is-error{color:rgb(248 113 113)}.ayr-playground-empty{padding:1.5rem 1rem;border:1px dashed var(--ayr-border);border-radius:12px;text-align:center;font-size:0.875rem;color:rgb(107 114 128)}.ayr-playground-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.dark .ayr-playground-section-title,.dark .ayr-playground-empty,.dark .ayr-playground-close{color:rgb(156 163 175)}.dark .ayr-playground-close:hover{color:inherit}"}]}
{"page":{"pagePath":"ar/dashboard/connect-social-accounts/x-twitter-byo-keys","slug":"/ar/dashboard/connect-social-accounts/x-twitter-byo-keys","pageMetadata":{"title":"إعداد مفتاح X API الخاص بك","description":"دليل خطوة بخطوة لربط بيانات اعتماد X (Twitter) API الخاصة بك مع Ayrshare","icon":"x-twitter","href":"/ar/dashboard/connect-social-accounts/x-twitter-byo-keys"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"دليل خطوة بخطوة لربط بيانات اعتماد X (Twitter) API الخاصة بك مع Ayrshare\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,CodeBlock,CodeGroup,Heading,Info,Note,OptimizedImage,Step,Steps,Table,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`في 31 مارس 2026، غيّرت X طريقة وصول المنصات الخارجية إلى واجهة برمجة التطبيقات الخاصة بها. نتيجةً لذلك، يجب على كل حساب Ayrshare يُنشر على X عبر Ayrshare أن يُسجّل تطبيق X Developer الخاص به وأن يستخدم API Key وAPI Secret الخاصين به في كل طلب.`}),`\n`,_jsx(_components.p,{children:`هذا تغيير على مستوى المنصة تفرضه X ويؤثر على جميع الأدوات الخارجية.`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`مفاتيح BYO تُعيَّن مرة واحدة لكل منصة (على مستوى الحساب)، وليس لكل عميل أو ملف تعريف فرعي.`}),` تُنشئ `,_jsx(_components.strong,{children:`تطبيق X Developer واحدًا`}),` ضمن حساب X الخاص بك، ويُطبَّق نفس `,_jsx(_components.strong,{children:`API Key + API Secret`}),` على مستوى الحساب لـ X — يُستخدمان لـ `,_jsx(_components.strong,{children:`كل`}),` ملف تعريف فرعي / مستخدم نهائي يربط X ضمن حساب Ayrshare الخاص بك. إذا كانت لديك خطة Business أو Enterprise بمئات من الملفات الفرعية، فأنت `,_jsx(_components.strong,{children:`لا`}),` تحتاج إلى تكرار هذا الإعداد لكل منها. تقوم بإعداده مرة واحدة لمنصة X، ثم تمرّر نفس الترويستين على كل طلب.`]})}),`\n`,_jsx(_components.p,{children:`لقد بسّطنا عملية الإعداد لجعل هذا الأمر بسيطًا قدر الإمكان، ويجب أن يستغرق إكماله أقل من 10 دقائق. اتبع دليلنا خطوة بخطوة أدناه، وإذا كنت بحاجة إلى أي مساعدة على طول الطريق، فإن فريقنا هنا للمساعدة.`}),`\n`,_jsx(Heading,{level:`2`,id:`الخطوة-1-إنشاء-حساب-x-developer-الخاص-بك`,children:`الخطوة 1: إنشاء حساب X Developer الخاص بك`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`سجّل الدخول إلى Developer Console`,children:[_jsxs(_components.p,{children:[`انتقل إلى `,_jsx(_components.a,{href:`https://console.x.com`,children:`console.x.com`}),` وسجّل الدخول بحسابك على X. راجع `,_jsx(_components.a,{href:`https://docs.x.com/x-api/getting-started/getting-access`,children:`دليل البدء من X`}),` إذا كنت بحاجة إلى مساعدة.`]}),_jsx(OptimizedImage,{class:`center`,width:`700`,src:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step1-developer-console.webp?fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=58a00543db365d4d889722070643a070`,alt:`X Developer Console sign-in page`,\"data-og-width\":`1234`,\"data-og-height\":`803`,\"data-path\":`images/dashboard/x-byo-setup/step1-developer-console.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step1-developer-console.webp?w=280\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=938879f1e567194f28309da83fc13ee7 280w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step1-developer-console.webp?w=560\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=8d06c7a4806c5fdc0ff5a000ce89b591 560w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step1-developer-console.webp?w=840\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=8167e68f57c9d3d30eedd20482bac0d8 840w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step1-developer-console.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=411376aafc312705b23976ea6b32e283 1100w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step1-developer-console.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=f20d8d63f8a31cdf0bd90aa256e47b65 1650w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step1-developer-console.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=2f6031fe4744e4e7e4fb8943553eb191 2500w`})]}),_jsx(Step,{title:`أكمل الإعداد`,children:_jsx(_components.p,{children:`أكمل إعداد المطور واقبل اتفاقية المطور والسياسات.`})}),_jsx(Step,{title:`الوصول إلى وحدة التحكم`,children:_jsx(_components.p,{children:`أنت الآن في X Developer Console.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`step-2-create-an-app`,children:`الخطوة 2: إنشاء تطبيق`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`تقوم بإنشاء `,_jsx(_components.strong,{children:`تطبيق X Developer واحد فقط لكل حساب Ayrshare`}),`. يُعاد استخدام نفس التطبيق و API Key + API Secret الخاصين به لكل ملف تعريف فرعي / مستخدم نهائي تربطه لاحقًا ضمن حساب Ayrshare الخاص بك. أنت لا تُنشئ تطبيقًا جديدًا لكل عميل.`]})}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`انتقل إلى Apps`,children:[_jsxs(_components.p,{children:[`في Developer Console، انتقل إلى `,_jsx(_components.strong,{children:`Apps`}),`.`]}),_jsx(OptimizedImage,{class:`center`,width:`700`,src:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-apps-page.webp?fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=36076b8577cb46f4713cad41933bae2f`,alt:`Apps page in X Developer Console`,\"data-og-width\":`2048`,\"data-og-height\":`875`,\"data-path\":`images/dashboard/x-byo-setup/step2-apps-page.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-apps-page.webp?w=280\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=618a5b0a5c192d759d946bb84d30d97e 280w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-apps-page.webp?w=560\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=01a42a42982733035e31ddc1cc03908f 560w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-apps-page.webp?w=840\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=3ba5041fe7c38b74ee59e7225c7b2f4d 840w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-apps-page.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=d3346daba4eac0bc05707d8d3b26174b 1100w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-apps-page.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=8b8daa6f8dd11209fd40f89872b6303a 1650w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-apps-page.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=e5a80b04de69e89259566f8e6f6f1db8 2500w`})]}),_jsxs(Step,{title:`أنشئ التطبيق`,children:[_jsxs(_components.p,{children:[`في لوحة تحكم App، انقر على `,_jsx(_components.strong,{children:`Create App`}),` (راجع `,_jsx(_components.a,{href:`https://docs.x.com/fundamentals/developer-apps`,children:`مستندات إعداد التطبيق من X`}),` للتفاصيل). أدخل اسم التطبيق (عادةً اسم علامتك التجارية). سيظهر هذا الاسم في شاشة تفويض OAuth عندما يربط المستخدمون حساب X الخاص بهم.`]}),_jsx(OptimizedImage,{class:`center`,width:`700`,src:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-create-app.webp?fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=dd9627eeb7e58c80f6249dd5cbfb0d4e`,alt:`Create App button in the X Developer Console`,\"data-og-width\":`2048`,\"data-og-height\":`947`,\"data-path\":`images/dashboard/x-byo-setup/step2-create-app.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-create-app.webp?w=280\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=abb52ed3abce2fb2f6e127c7ce69a1cc 280w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-create-app.webp?w=560\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=10d71bd1e512483a35bcb3b3832b9558 560w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-create-app.webp?w=840\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=5e7df1f1f964f08cc14fd8456e0adb5a 840w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-create-app.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=61cfb7400f71483333293f5503280210 1100w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-create-app.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=96e9795208e053de665d526b7abd7f8b 1650w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-create-app.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=bd4cdf9107efb7cc20741f2126d81e54 2500w`})]}),_jsxs(Step,{title:`اختر البيئة`,children:[_jsxs(_components.p,{children:[`اختر بيئة `,_jsx(_components.strong,{children:`Production`}),` في القائمة المنسدلة.`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`ضع تطبيقك في حزمة Pay-per-use.`}),` يجب أن يكون تطبيقك في حزمة `,_jsx(_components.strong,{children:`Pay-per-use`}),`، في بيئة `,_jsx(_components.strong,{children:`Production`}),`، وليس في `,_jsx(_components.strong,{children:`Standalone`}),`. وإلا سيفشل ربط حساب X الخاص بك مع خطأ 403 “Client Forbidden” (`,_jsx(_components.code,{children:`client-not-enrolled`}),`).`]})}),_jsx(OptimizedImage,{class:`center`,width:`700`,src:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-credentials-popup.webp?fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=2b111d840665b0b7eb96fc0d9df99f0e`,alt:`Production environment selection and credentials popup`,\"data-og-width\":`1109`,\"data-og-height\":`900`,\"data-path\":`images/dashboard/x-byo-setup/step2-credentials-popup.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-credentials-popup.webp?w=280\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=c8e37ddac31a20a0798ff7735cd59e9c 280w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-credentials-popup.webp?w=560\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=be02b3bc6d0d662ce9eb21f946dd870c 560w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-credentials-popup.webp?w=840\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=c71bebd542e27bceb80bd3adc0294f62 840w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-credentials-popup.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=88fccea45ab7202760a09211941733dc 1100w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-credentials-popup.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=a2ea9f4c1955fbddb31dce812cd7f779 1650w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step2-credentials-popup.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=537f94cee58e60756d29a5aead2dce57 2500w`})]}),_jsx(Step,{title:`أغلق نافذة بيانات الاعتماد الأولية`,children:_jsxs(_components.p,{children:[`ستُنشئ X عدة بيانات اعتماد. `,_jsx(_components.strong,{children:`تجاهل هذه البيانات وأغلق هذه النافذة.`})]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`step-3-configure-app-permissions`,children:`الخطوة 3: تكوين أذونات التطبيق`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`افتح إعدادات تطبيقك`,children:[_jsx(_components.p,{children:`ضمن “Apps”، حدّد موقع التطبيق الجديد (قم بتحديث الصفحة إذا لم يظهر)، ثم انقر عليه لعرض تفاصيله.`}),_jsx(OptimizedImage,{class:`center`,width:`700`,src:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-details.webp?fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=41f185aa2ffb4d90f0f9f174597cc4f1`,alt:`App details page in the X Developer Console`,\"data-og-width\":`2048`,\"data-og-height\":`937`,\"data-path\":`images/dashboard/x-byo-setup/step3-app-details.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-details.webp?w=280\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=033178616425374ab2f1a47518398b3a 280w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-details.webp?w=560\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=8c75387800df2a54b4c1e1a9c2d63235 560w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-details.webp?w=840\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=e52c65c0824faf161c693c7674e6e8cb 840w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-details.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=8d6578e29681faab3b7a60806c2e3e43 1100w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-details.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=9672f489ac7e262f65e3d6ca4dbe3866 1650w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-details.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=90ab187dbc7b4dd68d3396d082cf170e 2500w`}),_jsxs(_components.p,{children:[`ضمن `,_jsx(_components.strong,{children:`User authentication settings`}),`، انقر على `,_jsx(_components.strong,{children:`Set up`}),`.`]}),_jsx(OptimizedImage,{class:`center`,width:`700`,src:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-user-auth-settings.webp?fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=4faad9d5bc061f442ee0cc605e0aad6a`,alt:`User authentication settings, click Set up`,\"data-og-width\":`2048`,\"data-og-height\":`988`,\"data-path\":`images/dashboard/x-byo-setup/step3-user-auth-settings.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-user-auth-settings.webp?w=280\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=114dcee67285e624649686f9af5b69da 280w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-user-auth-settings.webp?w=560\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=edfcf1b336fddcb4fe76f443aace668f 560w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-user-auth-settings.webp?w=840\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=88bfed4b63d47c3ee131faefd618bdaa 840w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-user-auth-settings.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=93fc2fc72f38d9722ac07314d934ff4b 1100w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-user-auth-settings.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=39f7365bae71f1ecf74f31c5155e16e9 1650w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-user-auth-settings.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=5050507e04eaf1f48b9165d48acae15a 2500w`})]}),_jsxs(Step,{title:`عيّن أذونات التطبيق`,children:[_jsxs(_components.p,{children:[`ضمن `,_jsx(_components.strong,{children:`App permissions`}),`، اختر `,_jsx(_components.strong,{children:`Read and write and Direct message`}),`. هذا مطلوب لدعم كامل الميزات، بما في ذلك النشر والرسائل المباشرة.`]}),_jsx(OptimizedImage,{class:`center`,width:`700`,src:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-permissions.webp?fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=57549ea060507af5b99552b6952ef95a`,alt:`App permissions set to Read and write and Direct message`,\"data-og-width\":`2048`,\"data-og-height\":`916`,\"data-path\":`images/dashboard/x-byo-setup/step3-app-permissions.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-permissions.webp?w=280\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=967663e9221988a42f5240ee3b04a7fa 280w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-permissions.webp?w=560\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=860fb7340e53f30de165d46cb504ae3a 560w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-permissions.webp?w=840\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=a45de33c96315163857be3df57ad9753 840w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-permissions.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=4ba2ac9b9a8cafb254225077d62d87c3 1100w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-permissions.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=a523bdc9a380a6cc6ce66effe823bd22 1650w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-permissions.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=2aa1bc4175dc3562e7651b4e16964fa9 2500w`})]}),_jsxs(Step,{title:`عيّن نوع التطبيق`,children:[_jsxs(_components.p,{children:[`ضمن `,_jsx(_components.strong,{children:`Type of App`}),`، اختر `,_jsx(_components.strong,{children:`Web App, Automated App or Bot`}),`. هذا هو الخيار الصحيح لتكاملات الخوادم مثل Ayrshare.`]}),_jsx(OptimizedImage,{class:`center`,width:`700`,src:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-type.webp?fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=8609d048548432862ad801113e7b7b8e`,alt:`Type of App set to Web App, Automated App or Bot`,\"data-og-width\":`2042`,\"data-og-height\":`658`,\"data-path\":`images/dashboard/x-byo-setup/step3-app-type.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-type.webp?w=280\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=8cc5080d23a4f18a240245fba86ea825 280w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-type.webp?w=560\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=067ef3d8de679b214db46083f8ef902f 560w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-type.webp?w=840\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=2d6773c757e629dbd1baac07df398425 840w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-type.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=a0f6290ebdae9fe04416de5fb4ade368 1100w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-type.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=03eec010d9d59dc1be31028fb7b92669 1650w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-app-type.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=62a973daa73cd285b4d4889fae619140 2500w`})]}),_jsxs(Step,{title:`عيّن عناوين URL للاستدعاء والموقع الإلكتروني`,children:[_jsxs(_components.p,{children:[`ضمن `,_jsx(_components.strong,{children:`App info`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Callback URL:`}),` أضف عنواني URL الاستدعاء التاليين:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`https://profile.ayrshare.com/social-accounts`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`https://app.ayrshare.com/social-accounts`})}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Website URL:`}),` `,_jsx(_components.code,{children:`https://app.ayrshare.com`})]}),`\n`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`لا تتخطَّ هذه الخطوة.`}),` عناوين URL الاستدعاء هذه مطلوبة لتدفق ربط OAuth. عندما يُخوّل المستخدمون النهائيون اتصال X، تُعيدهم X إلى أحد هذه العناوين لإكمال عملية الربط. إذا كانت هذه مفقودة، سيفشل تدفق OAuth مع خطأ `,_jsx(_components.code,{children:`403 Callback URL not approved`}),`.`]})}),_jsx(OptimizedImage,{class:`center`,width:`700`,src:`https://mintcdn.com/ayrshare-docs/itktiDewCYTaymFN/images/dashboard/x-byo-setup/step3-app-info-urls.webp?fit=max\u0026auto=format\u0026n=itktiDewCYTaymFN\u0026q=85\u0026s=09d7254aa2d183e2899f95412e97316b`,alt:`App info form with callback URL and website URL filled in`,\"data-og-width\":`908`,\"data-og-height\":`664`,\"data-path\":`images/dashboard/x-byo-setup/step3-app-info-urls.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/itktiDewCYTaymFN/images/dashboard/x-byo-setup/step3-app-info-urls.webp?w=280\u0026fit=max\u0026auto=format\u0026n=itktiDewCYTaymFN\u0026q=85\u0026s=e4cd55b7c0e8e5b2e78f7f246486c6fe 280w, https://mintcdn.com/ayrshare-docs/itktiDewCYTaymFN/images/dashboard/x-byo-setup/step3-app-info-urls.webp?w=560\u0026fit=max\u0026auto=format\u0026n=itktiDewCYTaymFN\u0026q=85\u0026s=0daa1d7c0cfe379ab26d73fd3999914b 560w, https://mintcdn.com/ayrshare-docs/itktiDewCYTaymFN/images/dashboard/x-byo-setup/step3-app-info-urls.webp?w=840\u0026fit=max\u0026auto=format\u0026n=itktiDewCYTaymFN\u0026q=85\u0026s=57ed773de8d63058d7b63eedffcc9255 840w, https://mintcdn.com/ayrshare-docs/itktiDewCYTaymFN/images/dashboard/x-byo-setup/step3-app-info-urls.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=itktiDewCYTaymFN\u0026q=85\u0026s=a641ad5ad76d12c1ec264a2c9def0a1a 1100w, https://mintcdn.com/ayrshare-docs/itktiDewCYTaymFN/images/dashboard/x-byo-setup/step3-app-info-urls.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=itktiDewCYTaymFN\u0026q=85\u0026s=bdde71f24a7c1b009877ce3777b94486 1650w, https://mintcdn.com/ayrshare-docs/itktiDewCYTaymFN/images/dashboard/x-byo-setup/step3-app-info-urls.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=itktiDewCYTaymFN\u0026q=85\u0026s=ac8ea4413fff8494654603ed248f0f04 2500w`})]}),_jsx(Step,{title:`احفظ إعداداتك`,children:_jsxs(_components.p,{children:[`انقر على `,_jsx(_components.strong,{children:`Save`}),`. يمكنك تجاهل النافذة المنبثقة لـ OAuth 2.0، حيث ستستخدم فقط 2 من مفاتيح OAuth 1.0 (API Key وAPI Secret).`]})})]}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`مهم: عيّن الأذونات قبل الربط.`}),` تحدد الأذونات التي تختارها هنا ما يمكن لتطبيقك القيام به. إذا غيّرت الأذونات بعد ربط حسابك على X عبر OAuth، ستحتاج إلى إعادة الربط بحيث يرث Access Token الجديد الأذونات المُحدَّثة.`]}),_jsx(OptimizedImage,{class:`center`,width:`700`,src:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-keys-and-tokens.webp?fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=761423c4c27f0c90b480d00f1ff253f7`,alt:`Keys and tokens page showing OAuth 1.0 keys with permission level`,\"data-og-width\":`926`,\"data-og-height\":`854`,\"data-path\":`images/dashboard/x-byo-setup/step3-keys-and-tokens.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-keys-and-tokens.webp?w=280\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=96fb3e63f604deca1038c523a85e2a0f 280w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-keys-and-tokens.webp?w=560\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=ce1be3557c7c5d0ebd418647267dc08a 560w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-keys-and-tokens.webp?w=840\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=03bebbf43dfd5f1520ecf0211ad5d7f4 840w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-keys-and-tokens.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=03f9aeeec29de8366a5213a506ad45d3 1100w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-keys-and-tokens.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=8dbc09078b85136c43ab34a6ef44f5ad 1650w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step3-keys-and-tokens.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=0b16c0a19d011377c192ef190c3edafd 2500w`})]}),`\n`,_jsx(_components.p,{children:`يرجى التأكد من تخزين هذين المفتاحين:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`API Key`}),` (المعروف أيضًا بـ Consumer Key، مُعرِّف تطبيق X)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`API Secret`}),` (المعروف أيضًا بـ Consumer Secret)`]}),`\n`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`أنت `,_jsx(_components.strong,{children:`لا`}),` تحتاج إلى إنشاء Access Tokens يدويًا. يتعامل Ayrshare مع ذلك تلقائيًا عندما تربط حساب X الخاص بك عبر OAuth.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`الخطوة-4-شراء-أرصدة-x-api`,children:`الخطوة 4: شراء أرصدة X API`}),`\n`,_jsx(_components.p,{children:`تستخدم X الآن فوترة API قائمة على الأرصدة، تُشترى عبر لوحة تحكم المطور.`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`انتقل إلى الفوترة`,children:[_jsxs(_components.p,{children:[`في Developer Console، انقر على `,_jsx(_components.strong,{children:`Billing → Credits`}),` في الشريط الجانبي الأيسر.`]}),_jsx(OptimizedImage,{class:`center`,width:`700`,src:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-billing-credits.webp?fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=b104e991f726ec2ecb8cc8274d1889d2`,alt:`Billing Credits page in X Developer Console`,\"data-og-width\":`2048`,\"data-og-height\":`885`,\"data-path\":`images/dashboard/x-byo-setup/step4-billing-credits.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-billing-credits.webp?w=280\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=05857bceafa90c02bf795d8600c532d7 280w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-billing-credits.webp?w=560\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=b169db58214681f1f028250953a19210 560w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-billing-credits.webp?w=840\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=b041009571f7d6e3d6402ecab7ff0315 840w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-billing-credits.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=abb16fc8f0c380dbe8f7b1d606d65352 1100w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-billing-credits.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=f22c4726b85514ded6f879cc09d9ce63 1650w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-billing-credits.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=5172e62ed429e1aec41cb25dab287c1f 2500w`})]}),_jsxs(Step,{title:`اشترِ الأرصدة`,children:[_jsx(_components.p,{children:`اشترِ الأرصدة (الحد الأدنى هو $5، وهو كافٍ لمئات من استدعاءات API). كل استدعاء API هو جزء من سنت واحد، لذا يجب أن تكون التكلفة ضئيلة لمعظم المستخدمين.`}),_jsx(OptimizedImage,{class:`center`,width:`700`,src:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-purchase-credits.webp?fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=ae555dc44bcfdfb0d7e4f55237b248ef`,alt:`Credit purchase page in the X Developer Console`,\"data-og-width\":`2048`,\"data-og-height\":`1050`,\"data-path\":`images/dashboard/x-byo-setup/step4-purchase-credits.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-purchase-credits.webp?w=280\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=880a3ca24b200671083b647a8e01c46f 280w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-purchase-credits.webp?w=560\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=1d4590391ebd4bb7fb25c3051c9c0915 560w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-purchase-credits.webp?w=840\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=7cf1371cc050e20e5dadf5bd0b48eb6d 840w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-purchase-credits.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=fa7c584c07a7c2ae9034ebbff4a66143 1100w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-purchase-credits.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=fd4012882939b5f4f2f35a97edd836a0 1650w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-purchase-credits.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=31445cf4987844d06fb7c8d989c51389 2500w`})]}),_jsxs(Step,{title:`فعّل الشحن التلقائي`,children:[_jsxs(_components.p,{children:[`يمكنك تفعيل `,_jsx(_components.strong,{children:`auto-recharge`}),` لتجنّب انقطاع الخدمة، وإدارة سقف الإنفاق بتعيين الحد الأقصى للمبلغ الذي يمكنك إنفاقه في دورة الفوترة.`]}),_jsx(OptimizedImage,{class:`center`,width:`700`,src:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-auto-recharge.webp?fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=c9e0f36c379bbd5c47c8b242213eaa6a`,alt:`Auto-recharge and spend cap settings in X Developer Console`,\"data-og-width\":`1832`,\"data-og-height\":`593`,\"data-path\":`images/dashboard/x-byo-setup/step4-auto-recharge.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-auto-recharge.webp?w=280\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=f7101537cfe4f11ad00731fb2a2aa367 280w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-auto-recharge.webp?w=560\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=3f3faaa4b77240d48d48c09acfd8799f 560w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-auto-recharge.webp?w=840\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=85708d9e27f8fd9b3f0d5dc290969eae 840w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-auto-recharge.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=3453c9a1780bc8d1a3374d421a673fcf 1100w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-auto-recharge.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=ab0b806605b208cb8e3b5a4cee307271 1650w, https://mintcdn.com/ayrshare-docs/qVYhhKC6hYCwYmRp/images/dashboard/x-byo-setup/step4-auto-recharge.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=qVYhhKC6hYCwYmRp\u0026q=85\u0026s=ef3fcae5d4f8e3d14a68ed50faaf8d23 2500w`})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`ستفشل استدعاءات API الخاصة بك دون أرصدة.`}),` واجهة برمجة تطبيقات X تعمل بنظام الدفع لكل استخدام. إذا كان رصيدك صفرًا، فسيُعيد كل طلب API خطأ `,_jsx(_components.code,{children:`402 CreditsDepleted`}),` مع الرسالة “Your enrolled account does not have any credits to fulfill this request.” يشمل هذا النشر وقراءة التغريدات والبحث عن المستخدمين. حمّل الأرصدة قبل اختبار تكاملك. راجع `,_jsx(_components.a,{href:`#how-x-api-pricing-works`,children:`كيف تعمل أسعار X API`}),` للحصول على تحديث كامل بشأن أسعار X.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`الخطوة-5-تحديث-استدعاءات-ayrshare-api-الخاصة-بك`,children:`الخطوة 5: تحديث استدعاءات Ayrshare API الخاصة بك`}),`\n`,_jsx(_components.p,{children:`في الخطوة 3، حفظت هذين العنصرين بأمان في env أو config أو مدير الأسرار الخاص بك:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`API Key`}),` (المعروف أيضًا بـ Consumer Key، مُعرِّف تطبيق X)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`API Secret`}),` (المعروف أيضًا بـ Consumer Secret)`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`الآن، أضف بيانات اعتماد X الخاصة بك إلى ترويسات استدعاءات Ayrshare API.`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`مفاتيحك تبقى خاصة.`}),` يُستخدم مفتاح API و«سر» API الذي ترسله في هذه الترويسات لهذا الطلب وحده، ولا تخزّنهما Ayrshare. الاستثناء الوحيد هو إنشاء رابط ربط، وهو موضّح في قسم الأمان أدناه.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`header-reference`,children:`مرجع الترويسات`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`الترويسة`}),_jsx(_components.th,{children:`القيمة`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-Twitter-OAuth1-Api-Key`})}),_jsx(_components.td,{children:`API Key (Consumer Key)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-Twitter-OAuth1-Api-Secret`})}),_jsx(_components.td,{children:`API Key Secret (Consumer Secret)`})]})]})]}),`\n`,_jsxs(Warning,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`كيف تعرف ما إذا كانت أذوناتك غير صحيحة:`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`إذا كانت أذونات تطبيقك مُهيَّأة بشكل خاطئ، قد يُعيد طلب API خطأ `,_jsx(_components.code,{children:`403 Forbidden`}),` مع الرسالة: “Your client app is not configured with the appropriate OAuth1 app permissions.”`]}),`\n`]}),_jsxs(_components.p,{children:[`إذا رأيت هذا الخطأ، حدّث أذونات تطبيقك إلى `,_jsx(_components.strong,{children:`Read and write and Direct message`}),` في X Developer Console، ثم أعِد ربط حساب X الخاص بك عبر OAuth حتى يرث Access Token الجديد الأذونات المُحدَّثة.`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`أمثلة-الكود`,children:`أمثلة الكود`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`6`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.ayrshare.com/api/post`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_AYRSHARE_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Twitter-OAuth1-Api-Key: your_api_key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Twitter-OAuth1-Api-Secret: your_api_secret\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"post\": \"Hello from my own X App!\", \"platforms\": [\"twitter\"]}'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`13`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.ayrshare.com/api/post\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Bearer YOUR_AYRSHARE_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Twitter-OAuth1-Api-Key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`X_API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Twitter-OAuth1-Api-Secret\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`X_API_SECRET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` post:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Hello from my own X App!\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` platforms:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"twitter\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`15`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer YOUR_AYRSHARE_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Twitter-OAuth1-Api-Key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"X_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Twitter-OAuth1-Api-Secret\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"X_API_SECRET\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.ayrshare.com/api/post\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"post\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello from my own X App!\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"platforms\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"twitter\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})]}),`\n`,_jsx(_components.p,{children:`ستستمر أتمتة سير العمل الحالية لديك في العمل طالما أنك تُضمِّن ترويسات API Key وAPI Secret في كل طلب يستهدف X.`}),`\n`,_jsx(Heading,{level:`3`,id:`migrating-existing-profiles-business--enterprise`,children:`ترحيل الملفات الشخصية الموجودة (Business وEnterprise)`}),`\n`,_jsx(_components.p,{children:`إذا كانت لديك ملفات فرعية مرتبطة بالفعل بـ X عبر Ayrshare، فإن هذه الملفات تحتاج إلى إعادة ربط حسابات X الخاصة بها بعد التبديل إلى مفاتيح BYO. هذا لأن رموز الوصول الحالية قد صدرت ضمن تطبيق X الخاص بـ Ayrshare ولا يمكن استخدامها مع مفاتيحك الاستهلاكية (توقيعات OAuth 1.0a مرتبطة بالتطبيق الذي أصدر الرمز).`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`ضمّن مفاتيحك في generateJWT`,children:[_jsxs(_components.p,{children:[`أضف `,_jsx(_components.code,{children:`twitterApiKey`}),` و`,_jsx(_components.code,{children:`twitterApiSecret`}),` إلى جسم استدعاء `,_jsx(_components.a,{href:`/apis/profiles/generate-jwt#body-parameters`,children:`generateJWT`}),` الخاص بك. يتم تشفيرهما وتخزينهما مع جلسة الربط، ولا يتم كشفهما لمستخدميك النهائيين.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"profileKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"twitterApiKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_X_CONSUMER_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"twitterApiSecret\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_X_CONSUMER_SECRET\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`إنشاء رابط ربط هو الموضع الوحيد الذي تُرسل فيه consumer keys داخل الجسم: هذا الطلب، أو `,_jsx(_components.a,{href:`/apis/profiles/create-link-session`,children:_jsx(_components.code,{children:`POST /profiles/link-sessions`})}),`. وكل طلب آخر إلى X يستخدم الترويسات الموضحة أعلاه.`]})]}),_jsxs(Step,{title:`اطلب من المستخدمين إعادة ربط X`,children:[_jsx(_components.p,{children:`بعد إنشاء JWT مع تضمين المفاتيح، يحتاج المستخدمون إلى إعادة توصيل حساب X الخاص بهم من خلال صفحة ربط الملف الشخصي. ستُظهر شاشة موافقة OAuth الآن اسم تطبيقك بدلاً من اسم Ayrshare.`}),_jsx(_components.p,{children:`لتبسيط ذلك، يمكنك:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`إلغاء ربط الحسابات برمجيًا عبر `,_jsx(_components.a,{href:`/apis/profiles/unlink-social-network`,children:`Unlink API`}),`، ثم اطلب من المستخدمين إعادة التفويض`]}),`\n`,_jsxs(_components.li,{children:[`استخدام `,_jsxs(_components.a,{href:`/apis/profiles/generate-jwt#param-logout`,children:[`معلمة `,_jsx(_components.code,{children:`logout`})]}),` في generateJWT لفرض تسجيل دخول جديد`]}),`\n`,_jsxs(_components.li,{children:[`استخدام `,_jsx(_components.a,{href:`/apis/profiles/generate-jwt#param-allowed-social`,children:_jsx(_components.code,{children:`allowedSocial`})}),` لعرض X فقط في صفحة الربط أثناء تدفق الترحيل`]}),`\n`]})]}),_jsx(Step,{title:`استمر في إرسال الترويسات في جميع استدعاءات API`,children:_jsxs(_components.p,{children:[`بعد إعادة الربط، استمر في تضمين ترويستي `,_jsx(_components.code,{children:`X-Twitter-OAuth1-Api-Key`}),` و`,_jsx(_components.code,{children:`X-Twitter-OAuth1-Api-Secret`}),` في كل استدعاء API (النشر، التحليلات، التعليقات، إلخ).`]})})]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`بمجرد أن يُعيد ملف تعريف الربط ضمن تطبيق X الخاص بك، ستستخدم جميع المنشورات اللاحقة لذلك الملف الشخصي بيانات اعتمادك. يمكنك التحقق من ذلك بفحص صفحة الاستخدام في `,_jsx(_components.a,{href:`https://console.x.com`,children:`X Developer Console`}),` الخاص بك.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`تحقق-من-الإعداد`,children:`تحقق من الإعداد`}),`\n`,_jsxs(_components.p,{children:[`قم بإجراء استدعاء اختباري عبر Ayrshare API مع ترويساتك الجديدة للتأكد من أن كل شيء يعمل. نقطة النهاية `,_jsx(_components.a,{href:`/apis/analytics/social`,children:`/analytics/social`}),` هي اختبار خفيف جيد، حيث لن تُنشئ أي منشورات.`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-x-api-pricing-works`,children:`كيف تعمل أسعار X API`}),`\n`,_jsx(_components.p,{children:`سابقًا، كان Ayrshare يغطي تكلفة استخدام X API نيابةً عنك. بموجب النموذج الحالي لـ X، يحتفظ كل عميل Ayrshare بحساب X Developer الخاص به ويدفع لـ X مباشرة مقابل طلبات API التي يُجريها تطبيقه. (حساب X Developer واحد لكل حساب Ayrshare، وليس لكل مستخدم نهائي. جميع ملفاتك الفرعية تشترك في نفس حساب X Developer ورصيد الأرصدة.)`}),`\n`,_jsx(_components.p,{children:`نموذج تسعير X هو الدفع لكل استخدام: تشتري الأرصدة في X Developer Console، ويتم خصمها مع إجراء طلبات API. لا حاجة إلى عقود أو اشتراكات.`}),`\n`,_jsx(_components.p,{children:`العمليات النموذجية غير مكلفة. على سبيل المثال:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`العملية`}),_jsx(_components.th,{children:`التكلفة التقريبية`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`إنشاء منشور (نص فقط)`}),_jsx(_components.td,{children:`~$0.01 لكل منشور`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`إنشاء منشور مع وسائط`}),_jsx(_components.td,{children:`~$0.02 لكل منشور (تحميل الوسائط وإنشاء المنشور طلبان منفصلان)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`قراءة منشور`}),_jsx(_components.td,{children:`~$0.005 لكل قراءة`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`بحث عن المستخدم`}),_jsx(_components.td,{children:`~$0.01 لكل بحث`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`إرسال رسالة مباشرة (DM)`}),_jsx(_components.td,{children:`~$0.01 لكل رسالة`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`قراءة أحداث DM`}),_jsx(_components.td,{children:`~$0.01 لكل حدث`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`تفاعلات المستخدم (متابعة، إعجاب، إلخ)`}),_jsx(_components.td,{children:`~$0.015 لكل طلب`})]})]})]}),`\n`,_jsx(_components.p,{children:`للسياق، إذا كنت تنشر حوالي 100 مرة شهريًا، فستكون تكلفة X المباشرة لديك حوالي $1، والمنشورات مع الوسائط ستكون تقريبًا $2 شهريًا.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`تسعير X الدفع لكل استخدام حاليًا في مرحلة تجريبية. الأسعار قابلة للتغيير، وقد تُقدَّم تكاليف إضافية. تحقق دائمًا من Developer Console للحصول على أحدث الأسعار. راجع `,_jsx(_components.a,{href:`https://docs.x.com/x-api/fundamentals/pricing`,children:`تفاصيل معلومات أسعار X`}),`.`]})}),`\n`,_jsx(_components.p,{children:`نعلم أن هذا يُقدّم تكلفة لم تكن موجودة من قبل، ونريد أن نكون شفافين بشأن ذلك. في الوقت نفسه، يُتيح هذا النموذج أيضًا عدة فوائد لم تكن ممكنة في إعداد المفتاح المشترك السابق.`}),`\n`,_jsx(Heading,{level:`2`,id:`فوائد-استخدام-مفتاح-x-api-الخاص-بك`,children:`فوائد استخدام مفتاح X API الخاص بك`}),`\n`,_jsx(_components.p,{children:`يوفر استخدام بيانات اعتماد X API الخاصة بك مزيدًا من التحكم والموثوقية مقارنةً بنموذج المفتاح المشترك السابق. يشمل ذلك:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`تجربة OAuth ذات علامة تجارية:`}),` يرى المستخدمون اسم تطبيقك وعلامتك التجارية عند تفويض الوصول إلى X.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`حدود معدل مخصصة:`}),` يخضع استخدامك لـ API لحدود حساب X Developer الخاص بك، بشكل منفصل عن مستخدمي Ayrshare الآخرين. يمكنك مراقبة استخدامك في `,_jsx(_components.a,{href:`https://console.x.com`,children:`X Developer Console`}),` ومراجعة `,_jsx(_components.a,{href:`https://developer.x.com/en/docs/x-api/rate-limits`,children:`مستندات حدود معدل X API`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`التحكم في بيانات الاعتماد:`}),` يبقى مفتاح API و«السر» الخاصان بك في حساب X Developer الخاص بك. ولا تخزّن Ayrshare المفاتيح التي ترسلها في ترويسات الطلبات. الاستثناء الوحيد هو إنشاء رابط ربط، وهو موضّح في قسم الأمان أدناه.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`قابلية النقل:`}),` لأن المستخدمين يُصادقون بتطبيق X الخاص بك، يبقى تكاملك تحت سيطرتك الكاملة.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`رؤية الاستخدام:`}),` تعرض لوحة تحكم X Developer الخاصة بك طلبات API وحدود المعدل واستخدام الأرصدة.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`X هي أول منصة تتطلب هذا النموذج، لكن المزيد من المنصات تتحرك نحو “أحضر مفتاح API الخاص بك”. نحن نُوسّع هذه الإمكانية عبر Ayrshare، لكي يحصل المطورون على نفس التحكم والاستقلالية عبر جميع المنصات الاجتماعية.`}),`\n`,_jsx(Heading,{level:`2`,id:`الأمان`,children:`الأمان`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`يُستخدم مفتاح API و«سر» API الذي ترسله في ترويسات الطلبات لهذا الطلب وحده، ولا تخزّنهما Ayrshare.`}),`\n`,_jsxs(_components.li,{children:[`إنشاء رابط الربط هو الاستثناء. عندما تُرسل `,_jsx(_components.code,{children:`twitterApiKey`}),` و`,_jsx(_components.code,{children:`twitterApiSecret`}),` إلى `,_jsx(_components.a,{href:`/apis/profiles/generate-jwt`,children:_jsx(_components.code,{children:`POST /profiles/generateJWT`})}),` أو `,_jsx(_components.a,{href:`/apis/profiles/create-link-session`,children:_jsx(_components.code,{children:`POST /profiles/link-sessions`})}),`، يُشفَّر الزوج ويُخزَّن مع جلسة الربط تلك، لأن صفحة الربط تحتاج إليه عندما يمنح مستخدمك الإذن لـ X بعد لحظات. ويُحذف عندما `,_jsx(_components.a,{href:`/apis/profiles/revoke-link-session`,children:`تُبطل الرابط`}),`، أو عند فتح رابط منتهي الصلاحية أو الاستعلام عنه في المرة التالية، وفي جميع الأحوال يُحذف مع سجل الجلسة في غضون 30 يومًا.`]}),`\n`,_jsxs(_components.li,{children:[`للاطلاع على أفضل ممارسات الأمان العامة، راجع `,_jsx(_components.a,{href:`https://docs.x.com/resources/fundamentals/authentication`,children:`دليل أمان المصادقة من X`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`الأسئلة-الشائعة`,children:`الأسئلة الشائعة`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`هل أحتاج إلى إعداد هذا لكل عميل / ملف فرعي؟`,id:`hl-ahtaj-ila-iedad-hdha-lkl-emyl-mlf-frey`,children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`لا.`}),` تقوم بإعداد `,_jsx(_components.strong,{children:`تطبيق X Developer واحد`}),` ضمن حساب X الخاص بك، ويُعاد استخدام نفس `,_jsx(_components.strong,{children:`API Key + API Secret`}),` لكل ملف تعريف فرعي / مستخدم نهائي تربطه ضمن حساب Ayrshare الخاص بك.`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`تُنشئ تطبيق X Developer `,_jsx(_components.strong,{children:`مرة واحدة`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`تُمرِّر نفس الترويستين (`,_jsx(_components.code,{children:`X-Twitter-OAuth1-Api-Key`}),` و`,_jsx(_components.code,{children:`X-Twitter-OAuth1-Api-Secret`}),`) في كل استدعاء Ayrshare API، بغض النظر عن الملف الشخصي الفرعي المقصود.`]}),`\n`,_jsxs(_components.li,{children:[`لا يزال يتعين على المستخدمين النهائيين لديك المرور بتدفق ربط OAuth لتفويض حساب X الخاص بهم، لكنهم `,_jsx(_components.strong,{children:`لا`}),` يحتاجون إلى تطبيق X Developer أو مفاتيح API الخاصة بهم. يتصلون عبر تطبيقك.`]}),`\n`,_jsx(_components.li,{children:`تشترك جميع الملفات الفرعية في نفس حساب X Developer، ونفس حدود المعدل، ونفس رصيد الأرصدة.`}),`\n`]}),_jsxs(_components.p,{children:[`الوقت الوحيد الذي تتعامل فيه مع المفاتيح لكل ملف تعريف هو في جسم `,_jsx(_components.a,{href:`/apis/profiles/generate-jwt`,children:`generateJWT`}),` أثناء الترحيل، وهي لا تزال نفس المفتاحين، فقط يتم توصيلهما إلى صفحة الربط بحيث يمكن للمستخدمين النهائيين إعادة التفويض ضمن تطبيقك.`]})]}),_jsx(Accordion,{title:`هل متطلب X API key نشط الآن؟`,id:`hl-mttlb-x-api-key-nsht-alan`,children:_jsx(_components.p,{children:`نعم. اعتبارًا من 31 مارس 2026، تتطلب جميع عمليات X عبر Ayrshare بيانات اعتماد X API الخاصة بك. إذا لم تُعدّ حساب X Developer الخاص بك بعد، فاتبع الخطوات أعلاه.`})}),_jsx(Accordion,{title:`ماذا يحدث إذا لم أُضِف مفتاح X API الخاص بي إلى Ayrshare؟`,id:`madha-yhdth-idha-lm-audf-mftah-x-api-alkhas-by-ila-ayrshare`,children:_jsx(_components.p,{children:`يتطلب النشر على X عبر Ayrshare بيانات اعتماد X API الخاصة بك. يتم رفض الطلبات دون بيانات اعتماد BYO صالحة. لا يتأثر النشر على المنصات الأخرى (Instagram وLinkedIn وFacebook وTikTok، إلخ).`})}),_jsx(Accordion,{title:`ما تكلفة X API؟`,id:`ma-tklft-x-api`,children:_jsxs(_components.p,{children:[`تفرض X رسومًا لكل استدعاء API. إنشاء منشور يكلف حوالي $0.01، وقراءة منشور تكلف حوالي $0.005. على سبيل المثال، نشر 100 منشور شهريًا سيكلف حوالي $1. راجع `,_jsx(_components.a,{href:`https://docs.x.com/x-api/fundamentals/pricing`,children:`صفحة أسعار X`}),` للتفاصيل الكاملة.`]})}),_jsx(Accordion,{title:`هل يُغيّر هذا سعر اشتراك Ayrshare الخاص بي؟`,id:`hl-yughyr-hdha-ser-ashtrak-ayrshare-alkhas-by`,children:_jsx(_components.p,{children:`لا. سعر اشتراك Ayrshare الخاص بك يبقى كما هو. التكلفة الإضافية الوحيدة هي رسوم استخدام X API التي تُفوترها X مباشرةً عبر حساب المطور الخاص بك.`})}),_jsx(Accordion,{title:`هل يُخزّن Ayrshare بيانات اعتماد X API الخاصة بي؟`,id:`hl-yukhzn-ayrshare-byanat-aetmad-x-api-alkhast-by`,children:_jsxs(_components.p,{children:[`بالنسبة إلى طلبات API العادية، لا: يُستخدم مفتاح API و«سر» API الذي ترسله في الترويسات لهذا الطلب وحده ولا يُخزَّن. أما إنشاء رابط الربط فهو الاستثناء، لأن صفحة الربط تحتاج إلى الزوج عندما يمنح مستخدمك الإذن لـ X. وهناك يُشفَّر ويُخزَّن مع جلسة الربط، ثم يُحذف عندما `,_jsx(_components.a,{href:`/apis/profiles/revoke-link-session`,children:`تُبطل الرابط`}),`، أو عند فتح رابط منتهي الصلاحية أو الاستعلام عنه في المرة التالية، أو مع سجل الجلسة في غضون 30 يومًا. راجع قسم الأمان أعلاه، و`,_jsx(_components.a,{href:`https://docs.x.com/resources/fundamentals/authentication`,children:`دليل أمان المصادقة من X`}),` للممارسات العامة.`]})}),_jsxs(Accordion,{title:`لديّ بالفعل حساب X Developer. هل يمكنني استخدام مفتاحي الحالي؟`,id:`ldy-balfel-hsab-x-developer-hl-ymknny-astkhdam-mftahy-alhaly`,children:[_jsx(_components.p,{children:`نعم. يمكنك استخدام تطبيق X الحالي طالما أن لديه أذونات “Read and write” مُفعَّلة (وDirect Messages إذا كنت تستخدم ميزات الرسائل المباشرة).`}),_jsx(_components.p,{children:`ستحتاج إلى API Key (Consumer Key) وAPI Secret (Consumer Secret) من قسم Keys and tokens في X Developer Console. اربط حساب X الخاص بك عبر OAuth، ثم ضمّن هاتين الترويستين في طلبات Ayrshare API.`}),_jsx(_components.p,{children:`إذا غيّرت أذونات تطبيقك منذ الإعداد الأولي، أعِد ربط حساب X الخاص بك بحيث يرث Access Token الأذونات المُحدَّثة.`})]}),_jsx(Accordion,{title:`يعرض X Developer Portal العديد من بيانات الاعتماد. أيها أحتاج فعلاً؟`,id:`yerd-x-developer-portal-aledyd-mn-byanat-alaetmad-ayha-ahtaj-fela`,children:_jsxs(_components.p,{children:[`تحتاج إلى API Key (Consumer Key) وAPI Secret (Consumer Secret). راجع `,_jsx(_components.a,{href:`#header-reference`,children:`جدول مرجع الترويسات`}),` أعلاه لمعرفة أي ترويسة Ayrshare يتم ربطها بكل منهما. يمكنك تجاهل Client ID وClient Secret وBearer Token وAccess Token وAccess Token Secret.`]})}),_jsxs(Accordion,{title:`ما الفرق بين 'API Key' و'Client ID'؟`,id:`ma-alfrq-byn-api-key-w-client-id`,children:[_jsx(_components.p,{children:`هما بيانات اعتماد مختلفة تمامًا لطرق مصادقة مختلفة:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`API Key`}),` (يُسمى أيضًا “Consumer Key”) لـ OAuth 1.0a. API Key (Consumer Key) + API Secret هو ما يستخدمه Ayrshare. يعمل مع جميع ميزات X، والرموز لا تنتهي أبدًا، ولا حاجة إلى منطق تجديد.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Client ID`}),` لـ OAuth 2.0. أنت لا تحتاج إليه لـ Ayrshare. تنتهي رموز OAuth 2.0 بعد فترة قصيرة وتتطلب إدارة رمز تجديد.`]}),`\n`]}),_jsx(_components.p,{children:`لـ Ayrshare، تحتاج فقط إلى API Key وAPI Secret. يمكنك تجاهل Client ID وClient Secret وBearer Token.`})]}),_jsx(Accordion,{title:`لماذا OAuth 1.0a وليس OAuth 2.0؟`,id:`lmadha-oauth-1-0a-wlys-oauth-2-0`,children:_jsx(_components.p,{children:`تنتهي رموز الوصول لـ OAuth 2.0 كل ساعتين ورموز تجديد X تُستخدم مرة واحدة (كل تجديد يُبطِل الرمز القديم). هذا يجعل من المستحيل دعم نموذج BYO عديم الحالة، خاصةً للمنشورات المجدولة. لا تنتهي رموز OAuth 1.0a أبدًا، وتعمل مع جميع ميزات X، ولا تتطلب أي إدارة للرموز.`})}),_jsx(Accordion,{title:`هل يحتاج مستخدموي الحاليون إلى إعادة ربط حسابات X الخاصة بهم؟`,id:`hl-yhtaj-mstkhdmwy-alhalywn-ila-ieadt-rbt-hsabat-x-alkhast-bhm`,children:_jsxs(_components.p,{children:[`نعم. إذا ربط مستخدموك X عبر Ayrshare قبل إعدادك لمفاتيح BYO، فسيحتاجون إلى إعادة الاتصال. رموز الوصول الحالية صدرت ضمن تطبيق X الخاص بـ Ayrshare ولن تعمل مع مفاتيحك الاستهلاكية. راجع `,_jsx(_components.a,{href:`#migrating-existing-profiles-business--enterprise`,children:`ترحيل الملفات الشخصية الموجودة`}),` أعلاه للاطلاع على العملية خطوة بخطوة.`]})}),_jsx(Accordion,{title:`هل يؤثر هذا التغيير على النشر إلى Instagram أو LinkedIn أو منصات أخرى؟`,id:`hl-ywthr-hdha-altghyyr-ela-alnshr-ila-instagram-aw-linkedin-aw-mnsat-akhra`,children:_jsx(_components.p,{children:`لا. يؤثر هذا التغيير فقط على النشر إلى X. جميع تكاملات المنصات الأخرى في Ayrshare تستمر في العمل كالمعتاد.`})}),_jsxs(Accordion,{title:`ماذا عن النشر التلقائي عبر RSS/Feed إلى X؟`,id:`madha-en-alnshr-altlqayy-ebr-rss-feed-ila-x`,children:[_jsx(_components.p,{children:`لم يعد النشر التلقائي عبر RSS إلى X مدعومًا. تعمل خلاصات RSS تلقائيًا وفقًا لجدول زمني، لكن نموذج أحضر مفتاح API الخاص بك يتطلب توفير بيانات الاعتماد مع كل طلب API. لهذا السبب، لا يمكن لخلاصات RSS المصادقة عند إرسال المنشور.`}),_jsxs(_components.p,{children:[`إذا كنت تستخدم RSS سابقًا للنشر إلى X، فإننا نوصي بالتبديل إلى `,_jsx(_components.a,{href:`/apis/post/overview#schedule-posts`,children:`المنشورات المجدولة`}),` أو استدعاءات API المباشرة التي تتضمن بيانات اعتمادك. النشر التلقائي عبر RSS إلى جميع المنصات الأخرى دون تغيير.`]})]}),_jsx(Accordion,{title:`لماذا أحصل على خطأ 402 \"CreditsDepleted\"؟`,id:`lmadha-ahsl-ela-khta-402-creditsdepleted`,children:_jsxs(_components.p,{children:[`يعني هذا أن حساب X Developer الخاص بك لا يحتوي على أرصدة API متاحة. انتقل إلى `,_jsx(_components.a,{href:`https://console.x.com`,children:`console.x.com`}),` ← `,_jsx(_components.strong,{children:`Billing → Credits`}),` واشترِ الأرصدة. حتى $5 كافٍ لمئات من استدعاءات API. بمجرد تحميل الأرصدة، أعِد محاولة طلبك.`]})}),_jsxs(Accordion,{title:`لماذا أحصل على خطأ 403 \"Forbidden: OAuth1 App Permissions\"؟`,id:`lmadha-ahsl-ela-khta-403-forbidden-oauth1-app-permissions`,children:[_jsx(_components.p,{children:`Access Token الخاص بك لا يحتوي على الأذونات الصحيحة. يعني هذا عادةً واحدًا من أمرين:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`أذونات تطبيقك مُعيَّنة على “Read” بدلاً من “Read and write”.`}),` انتقل إلى Settings الخاص بتطبيقك في Developer Console وغيّره إلى `,_jsx(_components.strong,{children:`Read and write and Direct message`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`غيّرت الأذونات بعد ربط حساب X الخاص بك.`}),` تحتفظ Access Tokens بالأذونات التي أُنشئت بها. أعِد ربط حساب X الخاص بك عبر OAuth بحيث يرث الرمز الجديد الأذونات المُحدَّثة.`]}),`\n`]})]}),_jsx(Accordion,{title:`ماذا لو احتجت إلى مساعدة في الإعداد؟`,id:`madha-lw-ahtjt-ila-msaedt-fy-aliedad`,children:_jsxs(_components.p,{children:[`فريق الدعم لدينا سعيد بالمساعدة. إذا كانت لديك أي أسئلة أو واجهت مشكلات أثناء الإعداد، يرجى التواصل عبر `,_jsx(_components.a,{href:`mailto:support@ayrshare.com`,children:`support@ayrshare.com`}),`، وسنُرشدك خلال العملية.`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`استكشاف الأخطاء وإصلاحها`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`أحصل على خطأ 400 حول ترويسات مفقودة`,id:`ahsl-ela-khta-400-hwl-trwysat-mfqwdt`,children:[_jsx(_components.p,{children:`تأكد من أنك ترسل كلتا الترويستين المطلوبتين:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`X-Twitter-OAuth1-Api-Key`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`X-Twitter-OAuth1-Api-Secret`})}),`\n`]}),_jsx(_components.p,{children:`إذا رأيت خطأ عدم تطابق الزوج (على سبيل المثال، “You provided Api-Key but not Api-Secret”)، فهذا يعني أن أحدهما مفقود. كلاهما مطلوبان دائمًا.`}),_jsx(_components.p,{children:`ستُخبرك رسالة الخطأ بالترويسة المفقودة تحديدًا.`})]}),_jsxs(Accordion,{title:`أحصل على خطأ 403: \"Callback URL not approved\"`,children:[_jsx(_components.p,{children:`إذا رأيت هذا الخطأ عند محاولة ربط حساب X الخاص بك، تأكد من إضافة عناوين URL الاستدعاء المطلوبة إلى إعدادات تطبيق X Developer الخاص بك (ضمن Authentication settings > Callback URI / Redirect URL):`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`https://profile.ayrshare.com/social-accounts`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`https://app.ayrshare.com/social-accounts`})}),`\n`]}),_jsxs(_components.p,{children:[`راجع `,_jsx(_components.a,{href:`#step-3-configure-app-permissions`,children:`خطوة إعداد Callback URL`}),` أعلاه.`]})]}),_jsx(Accordion,{title:`أحصل على خطأ 402: \"CreditsDepleted\"`,children:_jsxs(_components.p,{children:[`حساب X Developer الخاص بك لا يحتوي على أرصدة API مُحمَّلة. انتقل إلى `,_jsx(_components.a,{href:`https://console.x.com`,children:`console.x.com`}),` ← `,_jsx(_components.strong,{children:`Billing → Credits`}),` واشترِ الأرصدة. حتى $5 كافٍ لمئات من استدعاءات API.`]})}),_jsxs(Accordion,{title:`أحصل على خطأ 403: \"oauth1 app permissions\"`,children:[_jsx(_components.p,{children:`Access Token الخاص بك لا يحتوي على الأذونات الصحيحة. يعني هذا عادةً:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`أذونات تطبيقك مُعيَّنة على “Read” بدلاً من “Read and write”.`}),` انتقل إلى Settings الخاص بتطبيقك في Developer Console وغيّره إلى `,_jsx(_components.strong,{children:`Read and write and Direct message`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`غيّرت الأذونات بعد ربط حساب X الخاص بك.`}),` تحتفظ Access Tokens بالأذونات التي أُنشئت بها. أعِد ربط حساب X الخاص بك عبر OAuth بحيث يرث الرمز الجديد الأذونات المُحدَّثة.`]}),`\n`]})]}),_jsxs(Accordion,{title:`أحصل على خطأ 403: \"Client Forbidden\" (client-not-enrolled)`,children:[_jsxs(_components.p,{children:[`تطبيق X الخاص بك غير مُسجَّل في X API v2. يحدث هذا عندما يكون التطبيق في حزمة `,_jsx(_components.strong,{children:`Standalone`}),`.`]}),_jsxs(_components.p,{children:[`في X Developer Console، انقل التطبيق من `,_jsx(_components.strong,{children:`Standalone`}),` إلى حزمة `,_jsx(_components.strong,{children:`Pay-per-use`}),` (بيئة `,_jsx(_components.strong,{children:`Production`}),`)، ثم أعِد ربط حساب X الخاص بك. راجع `,_jsx(_components.a,{href:`#step-2-create-an-app`,children:`الخطوة 2: إنشاء تطبيق`}),` أعلاه.`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`تحتاج-إلى-مساعدة؟`,children:`تحتاج إلى مساعدة؟`}),`\n`,_jsxs(_components.p,{children:[`إذا كانت لديك أي أسئلة أو واجهت مشكلات أثناء إعداد مفتاح X API الخاص بك، فإن فريقنا الهندسي سعيد بالمساعدة. يمكنك التواصل معنا في أي وقت على `,_jsx(_components.a,{href:`mailto:support@ayrshare.com`,children:`support@ayrshare.com`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"إعداد مفتاح X API الخاص بك","description":"دليل خطوة بخطوة لربط بيانات اعتماد X (Twitter) API الخاصة بك مع Ayrshare","icon":"x-twitter","href":"/ar/dashboard/connect-social-accounts/x-twitter-byo-keys"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"الخطوة 1: إنشاء حساب X Developer الخاص بك","slug":"الخطوة-1-إنشاء-حساب-x-developer-الخاص-بك","depth":2,"children":[]},{"title":"الخطوة 2: إنشاء تطبيق","slug":"step-2-create-an-app","depth":2,"children":[]},{"title":"الخطوة 3: تكوين أذونات التطبيق","slug":"step-3-configure-app-permissions","depth":2,"children":[]},{"title":"الخطوة 4: شراء أرصدة X API","slug":"الخطوة-4-شراء-أرصدة-x-api","depth":2,"children":[]},{"title":"الخطوة 5: تحديث استدعاءات Ayrshare API الخاصة بك","slug":"الخطوة-5-تحديث-استدعاءات-ayrshare-api-الخاصة-بك","depth":2,"children":[{"title":"مرجع الترويسات","slug":"header-reference","depth":3,"children":[]},{"title":"أمثلة الكود","slug":"أمثلة-الكود","depth":3,"children":[]},{"title":"ترحيل الملفات الشخصية الموجودة (Business وEnterprise)","slug":"migrating-existing-profiles-business--enterprise","depth":3,"children":[]},{"title":"تحقق من الإعداد","slug":"تحقق-من-الإعداد","depth":3,"children":[]}]},{"title":"كيف تعمل أسعار X API","slug":"how-x-api-pricing-works","depth":2,"children":[]},{"title":"فوائد استخدام مفتاح X API الخاص بك","slug":"فوائد-استخدام-مفتاح-x-api-الخاص-بك","depth":2,"children":[]},{"title":"الأمان","slug":"الأمان","depth":2,"children":[]},{"title":"الأسئلة الشائعة","slug":"الأسئلة-الشائعة","depth":2,"children":[]},{"title":"استكشاف الأخطاء وإصلاحها","slug":"troubleshooting","depth":2,"children":[]},{"title":"تحتاج إلى مساعدة؟","slug":"تحتاج-إلى-مساعدة؟","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/ayrshare-docs/80ea29d8530ebaa2/script.js","/docs/_mintlify/custom/ayrshare-docs/3e93073b19ca64e9/tools/maintainScroll.js"],"subdomain":"ayrshare-docs","siteName":"Ayrshare Docs","title":"إعداد مفتاح X API الخاص بك - Ayrshare Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/dashboard/connect-social-accounts/x-twitter-byo-keys","matchLevel":1},"es":{"href":"/es/dashboard/connect-social-accounts/x-twitter-byo-keys","matchLevel":1},"cn":{"href":"/cn/dashboard/connect-social-accounts/x-twitter-byo-keys","matchLevel":1,"hidden":true},"zh":{"href":"/zh/dashboard/connect-social-accounts/x-twitter-byo-keys","matchLevel":1,"hidden":true},"pt-BR":{"href":"/pt-BR/dashboard/connect-social-accounts/x-twitter-byo-keys","matchLevel":1},"fr":{"href":"/fr/dashboard/connect-social-accounts/x-twitter-byo-keys","matchLevel":1},"de":{"href":"/de/dashboard/connect-social-accounts/x-twitter-byo-keys","matchLevel":1},"vi":{"href":"/vi/dashboard/connect-social-accounts/x-twitter-byo-keys","matchLevel":1},"ja":{"href":"/ja/dashboard/connect-social-accounts/x-twitter-byo-keys","matchLevel":1},"uk":{"href":"/uk/dashboard/connect-social-accounts/x-twitter-byo-keys","matchLevel":1},"hi":{"href":"/hi/dashboard/connect-social-accounts/x-twitter-byo-keys","matchLevel":1},"ar":{"href":"/ar/dashboard/connect-social-accounts/x-twitter-byo-keys","matchLevel":0},"zh-Hans":{"href":"/zh-Hans/dashboard/connect-social-accounts/x-twitter-byo-keys","matchLevel":1},"zh-Hant":{"href":"/zh-Hant/dashboard/connect-social-accounts/x-twitter-byo-keys","matchLevel":1}}},"lastModified":"2026-11-23T12:46:02.252Z","originalFileLocation":"ar/dashboard/connect-social-accounts/x-twitter-byo-keys.mdx","locale":"ar"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"دليل خطوة بخطوة لربط بيانات اعتماد X (Twitter) API الخاصة بك مع Ayrshare\">\u003cmeta data-mint-head name=\"application-name\" content=\"Ayrshare Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"إعداد مفتاح X API الخاص بك - Ayrshare Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"دليل خطوة بخطوة لربط بيانات اعتماد X (Twitter) API الخاصة بك مع Ayrshare\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ayrshare Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.ayrshare.com/docs/ar/dashboard/connect-social-accounts/x-twitter-byo-keys\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ayrshare-docs.mintlify.site/docs/_mintlify/api/og/v2?division=Connect+Social+Accounts\u0026amp;title=%D8%A5%D8%B9%D8%AF%D8%A7%D8%AF+%D9%85%D9%81%D8%AA%D8%A7%D8%AD+X+API+%D8%A7%D9%84%D8%AE%D8%A7%D8%B5+%D8%A8%D9%83\u0026amp;description=%D8%AF%D9%84%D9%8A%D9%84+%D8%AE%D8%B7%D9%88%D8%A9+%D8%A8%D8%AE%D8%B7%D9%88%D8%A9+%D9%84%D8%B1%D8%A8%D8%B7+%D8%A8%D9%8A%D8%A7%D9%86%D8%A7%D8%AA+%D8%A7%D8%B9%D8%AA%D9%85%D8%A7%D8%AF+X+%28Twitter%29+API+%D8%A7%D9%84%D8%AE%D8%A7%D8%B5%D8%A9+%D8%A8%D9%83+%D9%85%D8%B9+Ayrshare\u0026amp;theme=722a7095c53b95fd5a0669f2\u0026amp;signature=bbba9156a54ba153760cee38569eb04a28fca8adc4652da7510399b5ba6ce942\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"إعداد مفتاح X API الخاص بك - Ayrshare Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"دليل خطوة بخطوة لربط بيانات اعتماد X (Twitter) API الخاصة بك مع Ayrshare\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ayrshare-docs.mintlify.site/docs/_mintlify/api/og/v2?division=Connect+Social+Accounts\u0026amp;title=%D8%A5%D8%B9%D8%AF%D8%A7%D8%AF+%D9%85%D9%81%D8%AA%D8%A7%D8%AD+X+API+%D8%A7%D9%84%D8%AE%D8%A7%D8%B5+%D8%A8%D9%83\u0026amp;description=%D8%AF%D9%84%D9%8A%D9%84+%D8%AE%D8%B7%D9%88%D8%A9+%D8%A8%D8%AE%D8%B7%D9%88%D8%A9+%D9%84%D8%B1%D8%A8%D8%B7+%D8%A8%D9%8A%D8%A7%D9%86%D8%A7%D8%AA+%D8%A7%D8%B9%D8%AA%D9%85%D8%A7%D8%AF+X+%28Twitter%29+API+%D8%A7%D9%84%D8%AE%D8%A7%D8%B5%D8%A9+%D8%A8%D9%83+%D9%85%D8%B9+Ayrshare\u0026amp;theme=722a7095c53b95fd5a0669f2\u0026amp;signature=bbba9156a54ba153760cee38569eb04a28fca8adc4652da7510399b5ba6ce942\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ayrshare Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2266C2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.ayrshare.com/docs/ar/dashboard/connect-social-accounts/x-twitter-byo-keys\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/ar/dashboard/connect-social-accounts/x-twitter-byo-keys.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ar\" href=\"https://www.ayrshare.com/docs/ar/dashboard/connect-social-accounts/x-twitter-byo-keys\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://www.ayrshare.com/docs/dashboard/connect-social-accounts/x-twitter-byo-keys\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://www.ayrshare.com/docs/es/dashboard/connect-social-accounts/x-twitter-byo-keys\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://www.ayrshare.com/docs/pt-BR/dashboard/connect-social-accounts/x-twitter-byo-keys\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://www.ayrshare.com/docs/fr/dashboard/connect-social-accounts/x-twitter-byo-keys\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://www.ayrshare.com/docs/de/dashboard/connect-social-accounts/x-twitter-byo-keys\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"vi\" href=\"https://www.ayrshare.com/docs/vi/dashboard/connect-social-accounts/x-twitter-byo-keys\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://www.ayrshare.com/docs/ja/dashboard/connect-social-accounts/x-twitter-byo-keys\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"uk\" href=\"https://www.ayrshare.com/docs/uk/dashboard/connect-social-accounts/x-twitter-byo-keys\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"hi\" href=\"https://www.ayrshare.com/docs/hi/dashboard/connect-social-accounts/x-twitter-byo-keys\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://www.ayrshare.com/docs/zh-Hans/dashboard/connect-social-accounts/x-twitter-byo-keys\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hant\" href=\"https://www.ayrshare.com/docs/zh-Hant/dashboard/connect-social-accounts/x-twitter-byo-keys\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://www.ayrshare.com/docs/dashboard/connect-social-accounts/x-twitter-byo-keys\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.ayrshare.com/#organization\",\"name\":\"Ayrshare Docs\",\"url\":\"https://www.ayrshare.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ayrshare-docs/7bWzjvNjeuvs-M3N/images/logos/ayrshare-docs-logo-light.svg?fit=max\u0026auto=format\u0026n=7bWzjvNjeuvs-M3N\u0026q=85\u0026s=8d23367f493d06599eecbbfa2b6325cf\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.ayrshare.com/docs#website\",\"name\":\"Ayrshare Docs\",\"url\":\"https://www.ayrshare.com/docs\",\"publisher\":{\"@id\":\"https://www.ayrshare.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.ayrshare.com/docs/ar/dashboard/connect-social-accounts/x-twitter-byo-keys#webpage\",\"url\":\"https://www.ayrshare.com/docs/ar/dashboard/connect-social-accounts/x-twitter-byo-keys\",\"name\":\"إعداد مفتاح X API الخاص بك\",\"description\":\"دليل خطوة بخطوة لربط بيانات اعتماد X (Twitter) API الخاصة بك مع Ayrshare\",\"dateModified\":\"2026-11-23T12:46:02.252Z\",\"isPartOf\":{\"@id\":\"https://www.ayrshare.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.ayrshare.com/docs/ar/dashboard/connect-social-accounts/x-twitter-byo-keys#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.ayrshare.com/docs/ar/dashboard/connect-social-accounts/x-twitter-byo-keys#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Dashboard\",\"item\":\"https://www.ayrshare.com/docs/ar/dashboard/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Connect Social Accounts\",\"item\":\"https://www.ayrshare.com/docs/ar/dashboard/connect-social-accounts/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"إعداد مفتاح X API الخاص بك\",\"item\":\"https://www.ayrshare.com/docs/ar/dashboard/connect-social-accounts/x-twitter-byo-keys\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.ayrshare.com/docs/ar/dashboard/connect-social-accounts/x-twitter-byo-keys#article\",\"headline\":\"إعداد مفتاح X API الخاص بك\",\"name\":\"إعداد مفتاح X API الخاص بك\",\"description\":\"دليل خطوة بخطوة لربط بيانات اعتماد X (Twitter) API الخاصة بك مع Ayrshare\",\"url\":\"https://www.ayrshare.com/docs/ar/dashboard/connect-social-accounts/x-twitter-byo-keys\",\"mainEntityOfPage\":{\"@id\":\"https://www.ayrshare.com/docs/ar/dashboard/connect-social-accounts/x-twitter-byo-keys#webpage\"},\"dateModified\":\"2026-11-23T12:46:02.252Z\",\"publisher\":{\"@id\":\"https://www.ayrshare.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.ayrshare.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Ayrshare Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Ayrshare Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/ar/dashboard/connect-social-accounts/x-twitter-byo-keys.md","siteName":"Ayrshare Docs","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/dashboard/connect-social-accounts/x-twitter-byo-keys"}]},{"language":"es","pages":[{"title":"es","href":"/es/dashboard/connect-social-accounts/x-twitter-byo-keys"}]},{"language":"cn","hidden":true,"pages":[{"title":"cn","href":"/cn/dashboard/connect-social-accounts/x-twitter-byo-keys","hidden":true}]},{"language":"zh","hidden":true,"pages":[{"title":"zh","href":"/zh/dashboard/connect-social-accounts/x-twitter-byo-keys","hidden":true}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt-BR/dashboard/connect-social-accounts/x-twitter-byo-keys"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/dashboard/connect-social-accounts/x-twitter-byo-keys"}]},{"language":"de","pages":[{"title":"de","href":"/de/dashboard/connect-social-accounts/x-twitter-byo-keys"}]},{"language":"vi","pages":[{"title":"vi","href":"/vi/dashboard/connect-social-accounts/x-twitter-byo-keys"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/dashboard/connect-social-accounts/x-twitter-byo-keys"}]},{"language":"uk","pages":[{"title":"uk","href":"/uk/dashboard/connect-social-accounts/x-twitter-byo-keys"}]},{"language":"hi","pages":[{"title":"hi","href":"/hi/dashboard/connect-social-accounts/x-twitter-byo-keys"}]},{"language":"ar","anchors":[{"anchor":"Documentation","icon":"code","groups":[{"group":"Get Started","pages":[{"title":"Ayrshare Social Media API","href":"/ar/introduction"},{"title":"دليل البدء السريع","href":"/ar/quickstart"},{"group":"MCP Server","pages":[{"title":"MCP Server: شغّل واجهة Ayrshare API بوكلاء الذكاء الاصطناعي","sidebarTitle":"نظرة عامة","icon":"robot","href":"/ar/additional/mcp-action-server"},{"title":"الاتصال بخادم MCP","sidebarTitle":"الاتصال والإعداد","icon":"plug","href":"/ar/additional/mcp-action-connect"},{"title":"كتالوج أدوات MCP","sidebarTitle":"كتالوج الأدوات","icon":"list","href":"/ar/additional/mcp-action-tools"},{"title":"إضافة Claude Code","icon":"terminal","href":"/ar/additional/mcp-claude-code-plugin"},{"title":"n8n","icon":"diagram-project","href":"/ar/additional/mcp-n8n"},{"title":"إعداد حسابات التواصل الاجتماعي للعملاء","sidebarTitle":"إعداد العميل","icon":"user-plus","href":"/ar/additional/mcp-client-onboarding"},{"title":"MCP للتوثيق","sidebarTitle":"MCP للتوثيق","icon":"magnifying-glass","href":"/ar/additional/mcp-server"}]}]},{"group":"API Endpoints","pages":[{"title":"نظرة عامة على واجهة برمجة تطبيقات Ayrshare","href":"/ar/apis/overview"},{"group":"GraphQL","pages":[{"title":"نظرة عامة على GraphQL API","href":"/ar/apis/graphql/overview"},{"title":"استخدام GraphQL API","href":"/ar/apis/graphql/using-the-api"},{"title":"أخطاء GraphQL","href":"/ar/apis/graphql/errors"},{"title":"حدود GraphQL والفوترة","href":"/ar/apis/graphql/limits"},{"title":"الإعلانات","href":"/ar/apis/graphql/ads"}]},{"group":"Ads","pages":[{"title":"Ads API: عزّز منشورات Meta وأدِر Google Ads","sidebarTitle":"نظرة عامة على Ads API","href":"/ar/apis/ads/overview"},{"title":"الحملات الإعلانية","href":"/ar/apis/ads/campaigns"},{"group":"Facebook Ads","pages":[{"title":"Accounts","api":"GET /ads/facebook/accounts","href":"/ar/apis/ads/facebook/get-ad-accounts"},{"title":"الحملات","api":"GET /ads/facebook/campaigns","href":"/ar/apis/ads/facebook/get-ad-campaigns"},{"title":"تعزيز المنشور","api":"POST /ads/facebook/boost","href":"/ar/apis/ads/facebook/boost-post"},{"title":"الإعلانات المُعزَّزة","api":"GET /ads/facebook/ads","href":"/ar/apis/ads/facebook/get-boosted-ads"},{"title":"السجل","api":"GET /ads/facebook/history","href":"/ar/apis/ads/facebook/get-ad-history"},{"title":"الرؤى","api":"GET /ads/facebook/insights","href":"/ar/apis/ads/facebook/get-ad-insights"},{"title":"الاهتمامات","api":"GET /ads/facebook/interests","href":"/ar/apis/ads/facebook/get-ad-interests"},{"title":"المناطق","api":"GET /ads/facebook/regions","href":"/ar/apis/ads/facebook/get-ad-regions"},{"title":"المدن","api":"GET /ads/facebook/cities","href":"/ar/apis/ads/facebook/get-ad-cities"},{"title":"توصيات DSA","api":"GET /ads/facebook/dsaRecommendations","href":"/ar/apis/ads/facebook/get-dsa-recommendations"},{"title":"تحديث إعلان","api":"PUT /ads/facebook/ads","href":"/ar/apis/ads/facebook/put-ad-update"},{"title":"الجماهير","api":"GET /ads/facebook/audiences","href":"/ar/apis/ads/facebook/get-audiences"},{"title":"إنشاء جمهور","api":"POST /ads/facebook/audiences","href":"/ar/apis/ads/facebook/create-audience"},{"title":"حذف جمهور","api":"DELETE /ads/facebook/audiences/{id}","href":"/ar/apis/ads/facebook/delete-audience"},{"title":"أعضاء الجمهور","api":"POST /ads/facebook/audiences/{id}/users","href":"/ar/apis/ads/facebook/audience-members"}]},{"group":"Instagram Ads","pages":[{"title":"Accounts","api":"GET /ads/instagram/accounts","href":"/ar/apis/ads/instagram/get-ad-accounts"},{"title":"الحملات","api":"GET /ads/instagram/campaigns","href":"/ar/apis/ads/instagram/get-ad-campaigns"},{"title":"المناطق","api":"GET /ads/instagram/regions","href":"/ar/apis/ads/instagram/get-ad-regions"},{"title":"المدن","api":"GET /ads/instagram/cities","href":"/ar/apis/ads/instagram/get-ad-cities"},{"title":"توصيات DSA","api":"GET /ads/instagram/dsaRecommendations","href":"/ar/apis/ads/instagram/get-dsa-recommendations"},{"title":"تعزيز المنشور","api":"POST /ads/instagram/boost","href":"/ar/apis/ads/instagram/boost-post"},{"title":"الإعلانات المُعزَّزة","api":"GET /ads/instagram/ads","href":"/ar/apis/ads/instagram/get-boosted-ads"},{"title":"السجل","api":"GET /ads/instagram/history","href":"/ar/apis/ads/instagram/get-ad-history"},{"title":"الرؤى","api":"GET /ads/instagram/insights","href":"/ar/apis/ads/instagram/get-ad-insights"},{"title":"الاهتمامات","api":"GET /ads/instagram/interests","href":"/ar/apis/ads/instagram/get-ad-interests"},{"title":"تحديث إعلان","api":"PUT /ads/instagram/ads","href":"/ar/apis/ads/instagram/put-ad-update"},{"title":"الجماهير","api":"GET /ads/instagram/audiences","href":"/ar/apis/ads/instagram/get-audiences"},{"title":"إنشاء جمهور","api":"POST /ads/instagram/audiences","href":"/ar/apis/ads/instagram/create-audience"},{"title":"حذف جمهور","api":"DELETE /ads/instagram/audiences/{id}","href":"/ar/apis/ads/instagram/delete-audience"},{"title":"أعضاء الجمهور","api":"POST /ads/instagram/audiences/{id}/users","href":"/ar/apis/ads/instagram/audience-members"}]},{"group":"Google Ads","pages":[{"title":"Accounts","api":"GET /ads/google/accounts","href":"/ar/apis/ads/google/get-ad-accounts"},{"title":"حملات بحث Google","sidebarTitle":"حملات البحث","api":"POST /ads/google/campaigns","href":"/ar/apis/ads/google/search-campaigns"},{"title":"حملات Google Performance Max","sidebarTitle":"حملات Performance Max","api":"POST /ads/google/campaigns","href":"/ar/apis/ads/google/performance-max-campaigns"},{"title":"الحصول على حملة","api":"GET /ads/google/campaigns/{id}","href":"/ar/apis/ads/google/get-campaign"},{"title":"تحديث حملة","api":"PUT /ads/google/campaigns/{id}","href":"/ar/apis/ads/google/update-campaign"},{"title":"الرؤى","api":"GET /ads/google/insights","href":"/ar/apis/ads/google/get-ad-insights"}]},{"group":"TikTok Ads","pages":[{"title":"تعزيز المنشور","api":"POST /ads/tiktok/boost","href":"/ar/apis/ads/tiktok/boost"}]},{"group":"Boost on Behalf","pages":[{"title":"تعزيز منشورات فريقك","href":"/ar/apis/ads/delegations/boost-on-behalf"},{"title":"إنشاء تفويضات التعزيز","api":"POST /ads/delegations","href":"/ar/apis/ads/delegations/create-delegations"},{"title":"الحصول على تفويضات التعزيز","api":"GET /ads/delegations","href":"/ar/apis/ads/delegations/get-delegations"},{"title":"إلغاء تفويض التعزيز","api":"DELETE /ads/delegations/:id","href":"/ar/apis/ads/delegations/delete-delegation"}]}]},{"group":"Analytics","pages":[{"title":"واجهة التحليلات: مقاييس المنشورات والحسابات والروابط","sidebarTitle":"نظرة عامة على واجهة برمجة تطبيقات التحليلات","href":"/ar/apis/analytics/overview"},{"title":"التحليلات على منشور","api":"POST /analytics/post","href":"/ar/apis/analytics/post"},{"title":"تحليلات على منشور حسب معرف اجتماعي","api":"POST /analytics/post","href":"/ar/apis/analytics/social-by-id"},{"title":"التحليلات على شبكة اجتماعية","api":"POST /analytics/social","href":"/ar/apis/analytics/social"},{"title":"قوائم تشغيل YouTube","api":"GET /analytics/youTubePlaylists","href":"/ar/apis/analytics/youtube-playlists"},{"title":"عدد متابعي إنستجرام المتصلين","api":"GET /analytics/getInstagramOnlineFollowers","href":"/ar/apis/analytics/instagram-follower-count"}]},{"group":"Auto Schedule","pages":[{"title":"نظرة عامة على Auto Schedule","href":"/ar/apis/auto-schedule/overview"},{"title":"تعيين الجدولة التلقائية","api":"POST /auto-schedule/set","href":"/ar/apis/auto-schedule/set-schedule"},{"title":"حذف الجدول التلقائي","api":"DELETE /auto-schedule/delete","href":"/ar/apis/auto-schedule/delete-schedule"},{"title":"عرض قائمة الجدولة التلقائية","api":"GET /auto-schedule/list","href":"/ar/apis/auto-schedule/list-schedule"},{"title":"الحصول على المنشورات المجدولة تلقائيًا المعلقة","api":"GET /auto-schedule/pending","href":"/ar/apis/auto-schedule/pending-auto-schedule"}]},{"group":"Automations","tag":"BETA","pages":[{"title":"نظرة عامة على واجهة برمجة تطبيقات الأتمتة","href":"/ar/apis/automations/overview"},{"title":"إنشاء أتمتة","api":"POST /automations","href":"/ar/apis/automations/create-automation"},{"title":"عرض قائمة الأتمتة","api":"GET /automations","href":"/ar/apis/automations/list-automations"},{"title":"الحصول على أتمتة","api":"GET /automations/:id","href":"/ar/apis/automations/get-automation"},{"title":"تحديث الأتمتة","api":"PUT /automations/:id","href":"/ar/apis/automations/update-automation"},{"title":"حذف الأتمتة","api":"DELETE /automations/:id","href":"/ar/apis/automations/delete-automation"},{"title":"الحصول على نشاط الأتمتة","api":"GET /automations/:id/activity","href":"/ar/apis/automations/get-activity"}]},{"group":"Brand","pages":[{"title":"Brand API: بيانات الحسابات العامة والمنافسين","href":"/ar/apis/brand/overview"}]},{"group":"Comments","pages":[{"title":"نظرة عامة على واجهة برمجة تطبيقات التعليقات","href":"/ar/apis/comments/overview"},{"title":"نشر تعليق","api":"POST /comments","href":"/ar/apis/comments/post-comment"},{"title":"الحصول على التعليقات","api":"GET /comments/:id","href":"/ar/apis/comments/get-comments"},{"title":"حذف التعليقات","api":"DELETE /comments/:id","href":"/ar/apis/comments/delete-comments"},{"title":"الرد على تعليق","api":"POST /comments/reply/:commentId","href":"/ar/apis/comments/reply-to-comment"}]},{"group":"Feed","pages":[{"title":"نظرة عامة على خلاصات RSS","href":"/ar/apis/feeds/overview"},{"title":"إضافة تغذية RSS","api":"POST /feed","href":"/ar/apis/feeds/add-feed"},{"title":"حذف تغذية RSS","api":"DELETE /feed","href":"/ar/apis/feeds/delete-feed"},{"title":"الحصول على خلاصات RSS","api":"GET /feed","href":"/ar/apis/feeds/get-feeds"},{"title":"تحديث خلاصة RSS","api":"PUT /feed","href":"/ar/apis/feeds/update-feed"}]},{"group":"Generate","pages":[{"title":"نظرة عامة على واجهة برمجة تطبيقات التوليد","href":"/ar/apis/generate/overview"},{"title":"توليد نص المنشور","api":"POST /generate/post","href":"/ar/apis/generate/post-text"},{"title":"إعادة صياغة المنشور","api":"POST /generate/rewrite","href":"/ar/apis/generate/rewrite-post"},{"title":"تفريغ فيديو","api":"POST /generate/transcription","href":"/ar/apis/generate/transcribe-video"},{"title":"ترجمة منشور","api":"POST /generate/translate","href":"/ar/apis/generate/translate-post"},{"title":"توليد النص البديل","api":"POST /generate/altText","href":"/ar/apis/generate/image-alt-text"},{"title":"تحليل المشاعر","api":"POST /generate/sentiment","href":"/ar/apis/generate/sentiment"}]},{"group":"Hashtags","pages":[{"title":"نظرة عامة على واجهة الوسوم (Hashtags)","href":"/ar/apis/hashtags/overview"},{"title":"الهاشتاغات التلقائية","api":"POST /hashtags/auto","href":"/ar/apis/hashtags/auto-hashtags"},{"title":"التحقق من الوسوم المحظورة","api":"GET /hashtags/banned","href":"/ar/apis/hashtags/check-hashtags"},{"title":"التوصية بالوسوم","api":"GET /hashtags/recommend","href":"/ar/apis/hashtags/recommend-hashtags"},{"title":"البحث في الوسوم","api":"GET /hashtags/search","href":"/ar/apis/hashtags/search-hashtags"}]},{"group":"History","pages":[{"title":"نظرة عامة على واجهة برمجة تطبيقات السجل","href":"/ar/apis/history/overview"},{"title":"سجل المنشورات","api":"GET /history","href":"/ar/apis/history/get-history"},{"title":"سجل المنشور حسب المعرّف","api":"GET /history/:id","href":"/ar/apis/history/get-history-id"},{"title":"الحصول على سجل المنشورات لمنصة تواصل اجتماعي","api":"GET /history/:platform","href":"/ar/apis/history/history-platform"},{"title":"سجل المنشورات حسب المعرّف الاجتماعي","api":"GET /history/:socialId","href":"/ar/apis/history/history-social-id"}]},{"group":"Links","pages":[{"title":"نظرة عامة على واجهة برمجة تطبيقات الروابط","href":"/ar/apis/links/overview"},{"title":"إنشاء رابط قصير","api":"POST /links","href":"/ar/apis/links/create-short-link"},{"title":"تحديث رابط قصير","api":"PUT /links/:id","href":"/ar/apis/links/update-short-link"},{"title":"تحليلات الروابط","api":"GET /links/:id","href":"/ar/apis/links/link-analytics"}]},{"group":"Listening","pages":[{"title":"واجهة برمجة تطبيقات الاستماع: مراقبة وسائل التواصل الاجتماعي والإشارات","href":"/ar/apis/listen/overview"},{"title":"الحصول على بيانات العلامة التجارية","api":"GET /brand/byUser","href":"/ar/apis/listen/brand-user"},{"group":"Search","pages":[{"title":"البحث في صفحات فيسبوك","api":"GET /brand/search/facebook","href":"/ar/apis/listen/search/fb-page-search"},{"title":"البحث في LinkedIn","api":"GET /brand/search/linkedin","href":"/ar/apis/listen/search/linkedin-search"}]},{"group":"Keyword","pages":[{"title":"البحث عن التغريدات حسب الكلمة المفتاحية","api":"GET /listen/keyword","href":"/ar/apis/listen/keyword/search-tweets"}]}]},{"group":"Media","pages":[{"title":"نظرة عامة على Media API","href":"/ar/apis/media/overview"},{"title":"تحميل صورة أو فيديو","api":"POST /media/upload","href":"/ar/apis/media/upload-media"},{"title":"تحميل ملفات وسائط كبيرة","api":"GET /media/uploadUrl","href":"/ar/apis/media/upload-large-media"},{"title":"التحقق من وجود عنوان URL للوسائط","api":"POST /media/urlExists","href":"/ar/apis/media/verify-media-url"},{"title":"احصل على كل الوسائط في المعرض","api":"GET /media","href":"/ar/apis/media/get-media-in-gallery"},{"title":"تغيير حجم الصورة","api":"POST /media/resize","href":"/ar/apis/media/resize"},{"title":"البيانات الوصفية لملف وسائط","api":"GET /media/meta","href":"/ar/apis/media/get-media-metadata"},{"title":"البحث في صوتيات Instagram","api":"GET /media/instagram/audio/search","href":"/ar/apis/media/search-instagram-audio"},{"title":"الحصول على البيانات الوصفية لصوت Instagram","api":"GET /media/instagram/audio/{audioId}","href":"/ar/apis/media/get-instagram-audio"}]},{"group":"Messages","pages":[{"title":"نظرة عامة على واجهة برمجة تطبيقات الرسائل","href":"/ar/apis/messages/overview"},{"title":"إرسال رسالة","api":"POST /messages/:platform","href":"/ar/apis/messages/send-message"},{"title":"الحصول على الرسائل","api":"GET /messages/:platform","href":"/ar/apis/messages/get-messages"},{"title":"تحديث الرسائل","api":"PUT /messages/:platform/:conversationId","href":"/ar/apis/messages/update-messages"},{"title":"تعيين الرد التلقائي","api":"POST /messages/autoresponse","href":"/ar/apis/messages/set-auto-response"},{"title":"الحصول على الرد التلقائي","api":"GET /messages/autoresponse","href":"/ar/apis/messages/get-auto-response"}]},{"group":"Post","pages":[{"title":"نظرة عامة على واجهة برمجة تطبيقات النشر","href":"/ar/apis/post/overview"},{"title":"واجهة نشر منشور: النشر على أي شبكة اجتماعية","api":"POST /post","href":"/ar/apis/post/post"},{"title":"الحصول على منشور","api":"GET /post/:id","href":"/ar/apis/post/get-post"},{"title":"حذف منشور","api":"DELETE /post","href":"/ar/apis/post/delete-post"},{"title":"تحديث منشور","api":"PATCH /post","href":"/ar/apis/post/update-post"},{"title":"إعادة محاولة منشور","api":"PUT /post/retry","href":"/ar/apis/post/retry-post"},{"title":"نسخ منشور","api":"POST /post/copy","href":"/ar/apis/post/copy-post"},{"title":"النشر المجمّع","api":"POST /post/bulk","href":"/ar/apis/post/bulk-post"},{"group":"Social Networks","pages":[{"title":"الشبكات الاجتماعية المدعومة","href":"/ar/apis/post/social-networks/overview"},{"title":"Bluesky API","icon":"bluesky","href":"/ar/apis/post/social-networks/bluesky"},{"title":"واجهة برمجة تطبيقات صفحة Facebook","icon":"facebook","href":"/ar/apis/post/social-networks/facebook"},{"title":"واجهة Google Business Profile","icon":"google","href":"/ar/apis/post/social-networks/google"},{"title":"Instagram API","icon":"instagram","href":"/ar/apis/post/social-networks/instagram"},{"title":"LinkedIn API","icon":"linkedin","href":"/ar/apis/post/social-networks/linkedin"},{"title":"Pinterest API","icon":"pinterest","href":"/ar/apis/post/social-networks/pinterest"},{"title":"Reddit API","icon":"reddit","href":"/ar/apis/post/social-networks/reddit"},{"title":"Snapchat API","icon":"snapchat","href":"/ar/apis/post/social-networks/snapchat"},{"title":"Telegram API","icon":"telegram","href":"/ar/apis/post/social-networks/telegram"},{"title":"Threads API","icon":"threads","href":"/ar/apis/post/social-networks/threads"},{"title":"TikTok API","icon":"tiktok","href":"/ar/apis/post/social-networks/tiktok"},{"title":"X API","icon":"x-twitter","href":"/ar/apis/post/social-networks/x-twitter"},{"title":"YouTube API","icon":"youtube","href":"/ar/apis/post/social-networks/youtube"}]}]},{"group":"Profiles","pages":[{"title":"نظرة عامة على واجهة برمجة تطبيقات الملفات الشخصية","href":"/ar/apis/profiles/overview"},{"title":"إنشاء ملف تعريف مستخدم","api":"POST /profiles","href":"/ar/apis/profiles/create-profile"},{"title":"حذف User Profile","api":"DELETE /profiles","href":"/ar/apis/profiles/delete-profile"},{"title":"تحديث ملف تعريف مستخدم","api":"PATCH /profiles","href":"/ar/apis/profiles/update-profile"},{"title":"الحصول على ملفات تعريف المستخدمين","api":"GET /profiles","href":"/ar/apis/profiles/get-profiles"},{"title":"إلغاء ربط شبكة تواصل اجتماعي","api":"DELETE /profiles/social","href":"/ar/apis/profiles/unlink-social-network"},{"title":"نظرة عامة على الربط الاجتماعي","href":"/ar/apis/profiles/social-linking-overview"},{"title":"إنشاء Link Session","api":"POST /profiles/link-sessions","href":"/ar/apis/profiles/create-link-session"},{"title":"الحصول على Link Session","api":"GET /profiles/link-sessions/{sessionId}","href":"/ar/apis/profiles/get-link-session"},{"title":"إبطال Link Session","api":"DELETE /profiles/link-sessions/{sessionId}","href":"/ar/apis/profiles/revoke-link-session"},{"title":"إنشاء رابط ربط (generateJWT)","api":"POST /profiles/generateJWT","deprecated":true,"href":"/ar/apis/profiles/generate-jwt"}]},{"group":"Reviews","pages":[{"title":"نظرة عامة على Reviews API","href":"/ar/apis/reviews/overview"},{"title":"الحصول على جميع المراجعات","api":"GET /reviews","href":"/ar/apis/reviews/get-reviews"},{"title":"الحصول على مراجعة واحدة","api":"GET /reviews/:id","href":"/ar/apis/reviews/get-one-review"},{"title":"الرد على مراجعة","api":"POST /reviews","href":"/ar/apis/reviews/reply-review"},{"title":"حذف رد على مراجعة","api":"DELETE /reviews","href":"/ar/apis/reviews/delete-review-reply"}]},{"group":"User","pages":[{"title":"نظرة عامة على واجهة برمجة تطبيقات ملف المستخدم","href":"/ar/apis/user/overview"},{"title":"تفاصيل ملف المستخدم","api":"GET /user","href":"/ar/apis/user/profile-details"},{"title":"لوحات Pinterest","api":"GET /user/details/pinterest","href":"/ar/apis/user/pinterest-board"},{"title":"تحديث المستخدم","api":"PATCH /user/:platform","href":"/ar/apis/user/update-user"},{"title":"ملف WhatsApp التجاري","api":"GET /user/details/whatsapp","href":"/ar/apis/user/whatsapp-profile"},{"title":"جلب جميع المستخدمين دفعةً واحدة","api":"GET /user/batch","href":"/ar/apis/user/batch-all-users"}]},{"group":"Utils","pages":[{"title":"حالة طلب المتعاون","api":"GET /post/collaborators/:id","href":"/ar/apis/utils/instagram-get-collaborator"},{"title":"Reddit Flair","api":"GET /post/redditFlair/:subreddit","href":"/ar/apis/utils/reddit-get-flair"},{"title":"عمليات بحث المستخدمين","api":"GET /user/lookups","href":"/ar/apis/utils/user-lookups"},{"group":"YouTube","pages":[{"title":"فئات YouTube","api":"GET /post/youtubeCategories/:region","href":"/ar/apis/utils/youtube-categories"},{"title":"تعيين علامة مائية لـ YouTube","api":"POST /post/youTubeWatermark","href":"/ar/apis/utils/set-youtube-watermark"},{"title":"إزالة العلامة المائية لـ YouTube","api":"DELETE /post/youTubeWatermark","href":"/ar/apis/utils/remove-youtube-watermark"}]}]},{"group":"Validate","pages":[{"title":"نظرة عامة على Validate API","href":"/ar/apis/validate/overview"},{"title":"التحقق من الوسائط","href":"/ar/apis/validate/validate-media"},{"title":"التحقق من طول المنشور","api":"POST /validate/postLength","href":"/ar/apis/validate/check-post-length"},{"title":"التحقق من وجود Subreddit","api":"GET /validate/redditExists/:subreddit","href":"/ar/apis/validate/check-subreddit"},{"title":"الإشراف على المحتوى","api":"POST /validate/moderation","href":"/ar/apis/validate/moderation"},{"title":"التحقق من صحة JSON","api":"POST /validate/json","href":"/ar/apis/validate/validate-json"},{"title":"التحقق من صحة المنشور","api":"POST /validate/post","href":"/ar/apis/validate/validate-post"}]},{"group":"Webhooks","pages":[{"title":"نظرة عامة على Webhooks","href":"/ar/apis/webhooks/overview"},{"title":"إجراءات Webhook","href":"/ar/apis/webhooks/actions"},{"title":"تسجيل Webhook","api":"POST /hook/webhook","href":"/ar/apis/webhooks/register"},{"title":"إلغاء تسجيل Webhook","api":"DELETE /hook/webhook","href":"/ar/apis/webhooks/unregister"},{"title":"تدوير المفتاح السري للتوقيع","api":"POST /hook/webhook/secret","href":"/ar/apis/webhooks/rotate-signing-secret"},{"title":"سرد Webhooks المسجلة","api":"GET /hook/webhook","href":"/ar/apis/webhooks/list"},{"title":"سجل Webhook","api":"GET /hook/history","href":"/ar/apis/webhooks/history"}]}]},{"group":"Multiple Users","pages":[{"title":"خطة Launch: خطة Business متعددة المستخدمين للمبتدئين","href":"/ar/multiple-users/business-launch-overview"},{"title":"نظرة عامة على Business Plan","href":"/ar/multiple-users/business-plan-overview"},{"title":"تكامل المستخدم","href":"/ar/multiple-users/user-integration"},{"title":"تكامل واجهة API للأعمال","href":"/ar/multiple-users/api-integration-business"},{"title":"أداة Ayrshare Connect","href":"/ar/multiple-users/connect-widget"},{"title":"ابنِ نافذة الربط المنبثقة الخاصة بك","href":"/ar/multiple-users/connect-direct-mode"},{"title":"أحداث اكتمال الربط","href":"/ar/multiple-users/link-completion-events"},{"title":"إدارة ملفات مستخدمين متعددة","href":"/ar/multiple-users/manage-user-profiles"}]},{"group":"Dashboard","pages":[{"title":"نظرة عامة على لوحة تحكم Ayrshare","href":"/ar/dashboard/overview"},{"group":"Connect Social Accounts","pages":[{"title":"ربط حسابات وسائل التواصل الاجتماعي","href":"/ar/dashboard/connect-social-accounts/overview"},{"title":"ربط Bluesky","icon":"bluesky","href":"/ar/dashboard/connect-social-accounts/bluesky"},{"title":"ربط فيسبوك","icon":"facebook","href":"/ar/dashboard/connect-social-accounts/facebook"},{"title":"ربط Google Business Profile","icon":"google","href":"/ar/dashboard/connect-social-accounts/google-business"},{"title":"ربط Instagram","icon":"instagram","href":"/ar/dashboard/connect-social-accounts/instagram"},{"title":"ربط LinkedIn","icon":"linkedin","href":"/ar/dashboard/connect-social-accounts/linkedin"},{"title":"ربط Pinterest","icon":"pinterest","href":"/ar/dashboard/connect-social-accounts/pinterest"},{"title":"ربط Reddit","icon":"reddit","href":"/ar/dashboard/connect-social-accounts/reddit"},{"title":"ربط Snapchat","icon":"snapchat","href":"/ar/dashboard/connect-social-accounts/snapchat"},{"title":"ربط مجموعة أو قناة Telegram بـ Ayrshare","icon":"telegram","href":"/ar/dashboard/connect-social-accounts/telegram"},{"title":"ربط Threads","icon":"threads","href":"/ar/dashboard/connect-social-accounts/threads"},{"title":"ربط TikTok","description":"اربط حساب TikTok شخصيًا أو تجاريًا بـ Ayrshare عبر منح الإذن على TikTok، مع ملاحظات حول انتهاء صلاحية الربط بعد 365 يومًا واستكشاف الأخطاء وإصلاحها.","icon":"tiktok","href":"/ar/dashboard/connect-social-accounts/tiktok"},{"title":"إعداد مفتاح X API الخاص بك","icon":"x-twitter","href":"/ar/dashboard/connect-social-accounts/x-twitter-byo-keys"},{"title":"ربط X","description":"اربط حساب X (Twitter) بـ Ayrshare بإدخال X Consumer Key وConsumer Secret، وتسجيل الدخول عبر النافذة المنبثقة، وتفويض التطبيق.","icon":"x-twitter","href":"/ar/dashboard/connect-social-accounts/x-twitter"},{"title":"ربط YouTube","icon":"youtube","href":"/ar/dashboard/connect-social-accounts/youtube"}]},{"title":"كيفية نشر منشورات وسائل التواصل الاجتماعي","href":"/ar/dashboard/publish-post"},{"title":"عرض JSON","href":"/ar/dashboard/view-json"},{"title":"إلغاء الوصول إلى وسائل التواصل الاجتماعي","href":"/ar/dashboard/revoke-access"},{"group":"RSS","pages":[{"title":"خلاصات RSS وSubstack وYouTube","href":"/ar/dashboard/automated-rss-feeds"},{"title":"العثور على عنوان URL لتغذية RSS","href":"/ar/dashboard/find-rss"}]}]},{"group":"Additional","pages":[{"group":"What's New At Ayrshare","pages":[{"title":"أحدث التحديثات","href":"/ar/whatsnew/latest"},{"title":"أرشيف التحديثات","href":"/ar/whatsnew/archive"},{"title":"تغييرات API القادمة","mode":"wide","href":"/ar/whatsnew/upcoming-api-changes"}]},{"group":"Errors","pages":[{"title":"نظرة عامة على الأخطاء","href":"/ar/errors/overview"},{"title":"رموز حالة HTTP","href":"/ar/errors/errors-http"},{"title":"رموز أخطاء Ayrshare","href":"/ar/errors/errors-ayrshare"}]},{"title":"Max Pack","mode":"wide","href":"/ar/additional/maxpack"},{"group":"Media Guidelines","pages":[{"title":"متطلبات الصور والفيديو على وسائل التواصل الاجتماعي","href":"/ar/media-guidelines/overview"},{"title":"Bluesky","icon":"bluesky","href":"/ar/media-guidelines/bluesky"},{"title":"صفحات Facebook","icon":"facebook","href":"/ar/media-guidelines/facebook-pages"},{"title":"Google Business Profile","icon":"google","href":"/ar/media-guidelines/google-business-profile"},{"title":"إنستجرام","icon":"instagram","href":"/ar/media-guidelines/instagram"},{"title":"LinkedIn","icon":"linkedin","href":"/ar/media-guidelines/linkedin"},{"title":"Pinterest","icon":"pinterest","href":"/ar/media-guidelines/pinterest"},{"title":"Reddit","icon":"reddit","href":"/ar/media-guidelines/reddit"},{"title":"Snapchat","icon":"snapchat","href":"/ar/media-guidelines/snapchat"},{"title":"Telegram","icon":"telegram","href":"/ar/media-guidelines/telegram"},{"title":"Threads","icon":"threads","href":"/ar/media-guidelines/threads"},{"title":"TikTok","icon":"tiktok","href":"/ar/media-guidelines/tiktok"},{"title":"WhatsApp","icon":"whatsapp","href":"/ar/media-guidelines/whatsapp"},{"title":"X","icon":"x-twitter","href":"/ar/media-guidelines/x-twitter"},{"title":"YouTube","icon":"youtube","href":"/ar/media-guidelines/youtube"}]},{"group":"Packages \u0026 Guides","pages":[{"title":"نظرة عامة على SDKs وأدلة تكامل Ayrshare","mode":"wide","href":"/ar/packages-guides/overview"},{"title":"Airtable","href":"/ar/packages-guides/airtable"},{"title":"Bubble.io","href":"/ar/packages-guides/bubble"},{"title":"Flutter","href":"/ar/packages-guides/flutter"},{"title":"FlutterFlow","href":"/ar/packages-guides/flutterflow"},{"title":"Make","href":"/ar/packages-guides/make"},{"title":"n8n","href":"/ar/packages-guides/n8n"},{"title":"Node.js NPM","href":"/ar/packages-guides/nodejs"},{"title":"Notion","href":"/ar/packages-guides/notion"},{"title":"Python PyPI","href":"/ar/packages-guides/python"},{"title":"Retool","href":"/ar/packages-guides/retool"}]},{"title":"حالة النظام","href":"/ar/additional/status"},{"group":"Testing \u0026 Verification","pages":[{"title":"Hurl","href":"/ar/testing/hurl"},{"title":"نقاط نهاية التحقق (Validation Endpoints)","href":"/ar/testing/validation-endpoints"},{"title":"Postman","href":"/ar/testing/postman"},{"title":"التحقق من المنشورات","href":"/ar/testing/post-verification"},{"title":"فحوصات ما قبل النشر","href":"/ar/testing/pre-publish-checks"}]},{"group":"ISO Codes","pages":[{"title":"رموز الدول","href":"/ar/iso-codes/country"},{"title":"رموز اللغات","href":"/ar/iso-codes/language"}]}]}]},{"anchor":"Help Center","icon":"lightbulb","pages":[{"title":"Help Center","href":"/ar/help-center/overview"}]}]},{"language":"zh-Hans","pages":[{"title":"zh-Hans","href":"/zh-Hans/dashboard/connect-social-accounts/x-twitter-byo-keys"}]},{"language":"zh-Hant","pages":[{"title":"zh-Hant","href":"/zh-Hant/dashboard/connect-social-accounts/x-twitter-byo-keys"}]}]},"basePath":"","title":"إعداد مفتاح X API الخاص بك - Ayrshare Docs","deploymentId":"dpl_4jsQX6wxBTKTWBK49utMnZg6AX9Q","buildId":"dpl_4jsQX6wxBTKTWBK49utMnZg6AX9Q","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-G1zPyUGO.js","lightbox-handle-r17bVUz3.js"]}