Install Facebook SDK for mobile apps only for Facebook mobile apps

I am trying to enable Facebook mobile app ads for my iOS app, I have installed Facebook SDK, the SDK itself is about 13MB. I'm just concerned about the size of my app, should I include the entire SDK for just one piece of code for Facebook mobile app ads? Or can I just import the required library?

As I don't want to increase the size of my application too much.

By the way, I am using Mono Touch, so the whole Facebook.dll file is around 10MB.

Thanks and greetings,

+3


source to share


1 answer


Facebook requires to Facebook iOS SDK

use Facebook Mobile Apps Install Ads

.

You need to add the following code to applicationDidBecomeActive

your file methodAppDelegate



(void)applicationDidBecomeActive:(UIApplication *)application
{
    [FBSession.activeSession handleDidBecomeActive];  
    [FBSettings publishInstall:YOUR_APP_ID];
} 

      

Check out the Facebook documentation for a full explanation.

+3


source







All Articles