Show Sidebar

Facebook Audience Network Integration using iOS SDK

Current Facebook Audience Network Version: 4.27.0

Supported Ad Formats: The VMAX SDK supportsBanner, Billboard, Instream Video, in-feed/content stream native ads and interstitial ads from Facebook’s Audience Network.


  1. When using Facebook as the mediation partner, ensure that users have the Facebook Native App installed on their devices and they are logged in to this app.
  2. As per the Facebook Developer Payments Terms, if you reach the redemption threshold (currently $100) and have not entered your payout details, Facebook’s Audience Network will stop serving ads.

You will need

  1. an active Facebook account
  2. Placement ID
  3. App ID
  4. Secret Key

In Facebook

In your Facebook account

  1. Create a Placement ID
  2. Create a Facebook App ID
  3. On the Developer Dashboard page, the App ID and Secret Key are shown below the App Name.

Note: For Interstitial Ads, it is recommended to use the cacheAd() and showAd() APIs.

Further Integration

Step 1: Integrate the VMAX Library Adapters

VMaxFacebookBannerAdapter.h, VMaxFacebookBannerAdapter.m,


VMaxFacebookInterstitialAdapter.h, VMaxFacebookInterstitialAdapter.m,

VMaxFacebookNativeAdapter.h and VMaxFacebookNativeAdapter.m

VMaxFacebookRewardedVideoAdapter.h and VMaxFacebookRewardedVideoAdapter.m

from the Adapters .zip folder.

Step 2: Integrate the main framework file FBAudienceNetwork.framework.

Step 3:Integrate the dependent framework files libz.1.2.5.dylib,  AdColony.framework,  AdSupport.framework,   AudioToolbox.framework,  AVFoundation.framework, CoreGraphics.framework,  CoreMedia.framework,  MobileCoreServices.framwork, CoreTelephony.framework, EventKit.framework,  EventKitUI.framework,  MediaPlayer.framework,  MessageUI.framework, QuartzCore.framework, Social.framework, StoreKit.framework, SystemConfiguration.framework, and WebKit.framework.

What would you like to do next?