원문 Facebook Cookbook / O'REILLY / Jay Coldman / ISBN : 978-0-596-51817-2
2.6 Google AdSense and Facebook
Problem
I’m using Google AdSense on my websites to run ads, and I really like the system. Can I use it inside Facebook?
Solution
You can, but it’s a little more complicated than just dropping your AdSense code into place. Facebook’s FBJS parser won’t allow straight JavaScript through without adding all kinds of funky namespace and sandbox security to your code, which prevents Google’s insertion script from working at all.
The generally accepted technique is to embed an fb:iframe tag in your Canvas page, which will load the AdSense ads inside your Canvas. Since AdSense works by selecting ads that are relevant to the content on the page, it’s important that you create that context by passing some parameters to the page for use in the meta keywords, description, and page title: