Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find Facebook SDK Version on iOS

Tags:

ios

facebook

I know I'm using the latest version (v3.2.1). But I want find it in header or programmatically.

In iOS I can't find version number in FacebookSDK.framework headers.

like image 315
tom19830924 Avatar asked Apr 01 '13 02:04

tom19830924


People also ask

How do I find my iOS SDK version?

If you care about the build number (like "10B61"), especially during betas, the best place to check which version of Xcode and related SDKs you have installed is to use "System Information". Once there, you'll see version and build numbers for all of the major components of the Developer Tools.

What is the latest version of Facebook SDK for iOS?

The current version of the Facebook SDK for iOS is version 14.1. 0.

What is Facebook SDK for iOS?

The Facebook SDK enables: Facebook Login - Authenticate people with their Facebook credentials. Share and Send dialogs - Enable sharing content from your app to Facebook. App Events - Log events in your application.


2 Answers

After about 2014, simply do this:

NSLog( @"### running FB sdk version: %@", [FBSDKSettings sdkVersion] );

For very old versions. Before about 3.6:

I found an undocumented way to print the SDK version (FB_IOS_SDK_VERSION_STRING), try this

NSLog(@"### FB SDK VERSION : %@",
    [[FBRequestConnection class] performSelector:@selector(userAgent)]);

Worked for me with sdk 3.5.1

Hope that helps...


Update: As of FB SDK 3.6, "The SDK version number is defined in FacebookSDK.h and available from [FBSDKSettings sdkVersion]"

https://developers.facebook.com/ios/change-log-3.x/

like image 85
poloDelaVega Avatar answered Oct 23 '22 22:10

poloDelaVega


You can find the version of your Facebook SDK in FBSDKCoreKit.h defined as

#define FBSDK_VERSION_STRING @"X.XX.X". Have a look at the image below.

enter image description here

like image 21
Adeel Miraj Avatar answered Oct 23 '22 22:10

Adeel Miraj