<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>weken.news — 整合除錯 RSS</title><description>第三方 API 整合踩坑紀錄（Vercel / Notion / LINE / Telegram / Gemini）。</description><link>https://weken.news/</link><language>zh-TW</language><item><title>Meta Ads MCP 怎麼接 Claude Desktop？實際 URL 是 mcp.meta.com 不是 mcp.facebook.com</title><link>https://weken.news/articles/meta-ads-mcp-claude-desktop-setup/</link><guid isPermaLink="true">https://weken.news/articles/meta-ads-mcp-claude-desktop-setup/</guid><description>Meta Ads MCP 在 2026-04-29 開放 open beta，正確 connector URL 是 https://mcp.meta.com/ads（不是流傳的 mcp.facebook.com/ads）。透過 Meta Business OAuth 授權後系統會 provision 專屬 URL（mcp.meta.com/ads/&lt;your-business-id&gt;），免 Meta Developer App、免 marketing API approval。但 per ad account 逐步開通、寫操作沒原生 guardrails，建議先用讀模式跑分析，寫操作走人工 Ads Manager。</description><pubDate>Sun, 03 May 2026 00:00:00 GMT</pubDate><category>meta-ads</category><category>mcp</category><category>claude-desktop</category><category>facebook-ads</category><category>ai-agent</category></item><item><title>Gemini 2.5 API 突然壞掉：thinkingConfig 必須嵌在 generationConfig 內，Google 收緊 schema 後頂層被拒</title><link>https://weken.news/articles/gemini-thinking-config-location-trap/</link><guid isPermaLink="true">https://weken.news/articles/gemini-thinking-config-location-trap/</guid><description>Gemini 2.5 系列 REST API 的 thinkingConfig 必須嵌在 generationConfig 內，不能放在 request body 頂層。錯誤訊息「Invalid JSON payload received. Unknown name thinkingConfig: Cannot find field」就是 Google API 在 body 頂層找不到這個欄位。Google 之前寬鬆接受頂層寫法、最近收緊 schema 後一律拒絕。修法是把 thinkingConfig 移進 generationConfig 同層的物件，5 分鐘可改完。</description><pubDate>Sat, 25 Apr 2026 00:00:00 GMT</pubDate><category>gemini</category><category>google ai</category><category>api</category><category>debug</category><category>node.js</category></item><item><title>Node.js template literal 嵌入 JavaScript 的地雷：\n 和 \&apos; 會讓整個 script 靜默崩潰</title><link>https://weken.news/articles/nodejs-template-literal-js-escape-bug/</link><guid isPermaLink="true">https://weken.news/articles/nodejs-template-literal-js-escape-bug/</guid><description>Node.js template literal 裡的 \n 和 \&apos; 等 escape 序列會被 Node.js 處理成真實字元，輸出到瀏覽器的 JavaScript 因此語法錯誤，整個 script block 靜默崩潰。症狀是 HTML 顯示正常但頁面功能完全失效，console 沒有報錯。解法是把 template literal 裡的 \ 全部雙寫（\\n 輸出成 \n、\\&apos; 輸出成 \&apos;）。</description><pubDate>Tue, 21 Apr 2026 00:00:00 GMT</pubDate><category>nodejs</category><category>javascript</category><category>debug</category><category>vercel</category><category>template-literal</category></item></channel></rss>