Facebook + Vungle

My game is using Vungle to display video ads, however we want to add the Facebook SDK at least for using Facebook advertising. But every time I try to import the SDKBOX facebook plugin i get this message:

LuisOscar$ sdkbox import facebook
  _______ ______  _     _ ______   _____  _     _
  |______ |     \ |____/  |_____] |     |  \___/ 
  ______| |_____/ |    \_ |_____] |_____| _/   \_
 Copyright (c) 2015 SDKBOX Inc. v1.0.0.7
 facebook conflicts with vungle, skip it.

Does this mean i can’t use both of them through SDKBOX? or that i have to try adding it manually? or that I have to add each to the systems i need it for (iOS and Android from the respective Facebook site). Or that I will not be able to use the facebook sdk as long as i am using vungle?

If you use Facebook with vungle it’s very likely you’ll running into android’s api limit issue. thus we marked them as conflict, however if you still want to use facebook, you can download the facebook plugin here

And use the following command

sdkbox import -b <path to facebook plugin>

Android’s api limit issue? Do you mean that vungle and facebook both send requests to the google apis? Right now im not really worried about users posting updates or anything (maybe in the future). But i just need the sdk installed on both android and ios so that facebook can monitor installs and i can advertise my game using facebook ads.
Will it work for this purpose?

(Thanks for the quick reply by the way)

Android have a api limit of 65K both vungle and facebook are really heavy on api counts, 20K each I think.
So if you use both it’s likely your project won’t able to build.

But we did optimized the google play lib so hopefully it will works for you, I think you should give it a try, we’ll also do some testing on our end and see if it’s still an issue.

Ah i found what you mean,

http://developer.android.com/tools/building/multidex.html

Yes it does seem complicated if it happens to exceed the 65k methods, considering im also using Admob, in app purchases, and other frameworks.

Thanks for the info.

Hi, have you managed to solve this issue? I think I’m also having problems because of this conflict, I’ve posted my problem here.

I think this is a big issue since many games would need to use both facebook and vungle. Also, in my case particularly, I only need the sdkbox::PluginShare, but as far as I know in order to use it with facebook, I have to include the sdkbox::PluginFacebook too, is that right? Or is there a solution to just integrate the share plugin without facebook? If not, how can we use multidex with cocos2d-x?

If you’re using android studio you can turn on multi dex support
https://developer.android.com/studio/build/multidex.html