Google পরিচয় পরিষেবাগুলি FedCM APIগুলিতে স্থানান্তরিত হচ্ছে৷ সম্ভাব্য পরিবর্তনগুলি পর্যালোচনা করতে এবং আপনার ওয়েবসাইটে ব্যবহারকারীর সাইন-ইন করার জন্য নেতিবাচক প্রভাব এড়াতে মাইগ্রেশন গাইড অনুসরণ করুন৷
ডিফল্টরূপে, ওয়ান ট্যাপ প্রম্পট ডেস্কটপ ওয়েব ব্রাউজার উইন্ডোর উপরের-ডান কোণায় প্রদর্শিত হয়। যখন FedCM ব্যবহার করা হয়, ব্রাউজার সম্পূর্ণরূপে প্রম্পট অবস্থান নিয়ন্ত্রণ করে। তাই, কাস্টম লেআউট সমর্থিত নয় ।
অন্যথায়, প্রম্পট অবস্থান পরিবর্তন করতে একটি ধারক উপাদানের ভিতরে একটি ট্যাপ প্রদর্শন করুন। এটি করতে, data-prompt_parent_id অ্যাট্রিবিউটে কন্টেইনার উপাদানটির DOM আইডি উল্লেখ করুন।
নিম্নলিখিত কোড উদাহরণটি ধারক উপাদান হিসাবে g_id_onload উপাদানটিকে পুনরায় ব্যবহার করে এবং নির্দিষ্ট অবস্থানে ওয়ান ট্যাপ প্রম্পট প্রদর্শন করে:
[null,null,["2025-01-08 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["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."]]],[]]