Create Code and HTML File
Log in to your Google AdSense (adsense.google.com) account.
Click the “My Ads” tab and click “New Ad Unit” to generate a new ad code connected to your AdSense account.
Edit and customize size and display settings on your ad by tweaking the settings Google AdSense offers, and then click “Save and Get Code.”
Log in to your Facebook Developer (developers.facebook.com) account and click “Set Up New App” from the top right corner of the window.
Write a name for your application, accept Facebook’s terms and conditions, and then confirm your developer account with either your linked credit card or mobile phone.
Fill the new application form with your app’s name, the intended use and category, and then click “Save Changes.”
Click “Facebook Integration” and fill out the required fields. Copy the URL from your HTML file that contains the AdSense code and paste it into the Canvas URL field. This directs your Facebook app to your AdSense code.
Click “View App Profile Page” then click “Add to my page” and choose which pages you would like to add the Facebook app to. Click “Close.” Return to your app’s homepage and verify the AdSense ads are displayed.