Facebook Mediation Adapter v2.0.0

Adapter for allowing the Millennial Media SDK to mediate to Facebook for inline, interstitial, and native ads.


  • MM Ad SDK v6.8.0
  • Facebook SDK v4.23.0


  Facebook SDK v4.23.0
MM Ad SDK v6.8.0 Facebook Adapter v2.0.0


Mediation to the Facebook Audience Network SDK for inline, interstitial, and native ads is handled by the MM Ad SDK and mediation adapter. Integrating application needs to add the appropriate frameworks per the standard integration guide from Facebook.

1. Download the Facebook SDK from the Facebook developers site
2. Integrate the Facebook SDK and MM Ad SDK according to their respective integration guides and include libMMFacebookAdapter.a
3. Include the following headers, provided with the adapter zip:
  • MMFacebookNative.h
4. (Native ONLY) When configuring a native placement to use Facebook mediation, make sure that the MMNativeAdTypeFacebook type is included in the supported types. For Swift projects, these imports will go in your bridging header file.:
#import <MMAdSDK/MMAdSDK.h>
#import "MMFacebookNative.h" // Declares the MMNativeAdTypeFacebook native ad type


// A native ad request for native type inline and native type facebook
MMNativeAd* nativeAd = [[MMNativeAd alloc] initWithPlacementId:@"<YOUR_PLACEMENT_ID>" supportedTypes:@[MMNativeAdTypeInline, MMNativeAdTypeFacebook]];


var nativeAd = MMNativeAd.init(placementId: "<YOUR_PLACEMENT_ID>>", supportedTypes: [MMNativeAdTypeInline, MMNativeAdTypeFacebook])


Release Notes

v2.0.0 - September 20, 2017

  • Updated to support MM SDK v6.6.0. Note that this adapter will not work with previous versions of the MM SDK

v1.1.5 - April 11, 2017

  • Added bitcode support

v1.1.4 - October 14, 2016

  • Fix for using site ID for the placement ID

v1.1.3 - June 30, 2016

  • Fix for missing native ad components

v1.1.2 - June 10, 2016

  • Fix for body component not being set

v1.1.1 - May 5, 2016

  • Updated to support Facebook SDK v4.10.1

v1.1.0 - September 18, 2015

  • Addition of support for inline and interstitial ads from the Facebook Audience Network
  • Removed armv7s slices – no longer supported under clang-700.0.72 (Xcode 7)

v1.0.0 - July 22, 2015

  • Initial release of the MM to Facebook mediation adapter