Google Identity Services در حال انتقال به APIهای FedCM است. راهنمای مهاجرت را دنبال کنید تا تغییرات احتمالی را بررسی کنید و از تأثیرات منفی ورود کاربر به وب سایت خود جلوگیری کنید.
به طور پیش فرض، درخواست One Tap در گوشه سمت راست بالای پنجره های مرورگر وب دسکتاپ نمایش داده می شود. هنگامی که از FedCM استفاده می شود، مرورگر به طور کامل مکان اعلان را کنترل می کند. بنابراین، طرحبندیهای سفارشی پشتیبانی نمیشوند .
در غیر این صورت، One Tap را در داخل یک عنصر ظرف نمایش دهید تا موقعیت درخواست را تغییر دهید. برای انجام این کار، شناسه DOM عنصر کانتینر را در ویژگی data-prompt_parent_id مشخص کنید.
مثال کد زیر از عنصر g_id_onload به عنوان عنصر کانتینر مجددا استفاده می کند و اعلان One Tap را در موقعیت مشخص شده نمایش می دهد:
تاریخ آخرین بهروزرسانی 2025-01-08 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-08 بهوقت ساعت هماهنگ جهانی."],[[["With the migration of One Tap to the FedCM API, browsers will control the prompt's size and position, eliminating support for custom positions."],["Developers are advised against customizing the position for new One Tap integrations and to review the migration guide for existing integrations to ensure compatibility."],["Customizing the One Tap login flow is possible, including positioning the prompt within a container element by utilizing the `data-prompt_parent_id` attribute, but avoid obscuring any prompt content to comply with Google's policies."],["Remember that the `data-prompt_parent_id` attribute is disregarded on mobile web browsers, limiting customization in those environments."],["Hiding or manipulating the One Tap prompt's content to misrepresent its origin from a Google iframe can lead to severe consequences, including project or account suspension."]]],[]]