บริการ Google Identity กำลังย้ายข้อมูลไปยัง FedCM API ทำตามคำแนะนำในการย้ายข้อมูลเพื่อตรวจสอบการเปลี่ยนแปลงที่อาจเกิดขึ้นและหลีกเลี่ยงผลกระทบในแง่ลบที่ผู้ใช้ลงชื่อเข้าใช้เว็บไซต์ของคุณ
หรือแสดงการแตะครั้งเดียวภายในองค์ประกอบคอนเทนเนอร์เพื่อเปลี่ยนตำแหน่งพรอมต์
โดยระบุรหัส DOM ขององค์ประกอบคอนเทนเนอร์ในแอตทริบิวต์ data-prompt_parent_id
ตัวอย่างโค้ดต่อไปนี้จะใช้องค์ประกอบ g_id_onload ซ้ำเป็นองค์ประกอบคอนเทนเนอร์ และแสดงข้อความแจ้ง One Tap ในตำแหน่งที่ระบุ
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2024-11-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."]]],[]]