Facebook SDK for Unity Changelog
List of changes and fixes to the Facebook SDK for Unity.
February 13th, 2017
facebook-unity-sdk-7.9.4.zip - Facebook SDK 7.9.4
v7.9.4 Facebook SDK
Added:
- Support premium games on Arcade platform with PayPremium and HasLicense methods
Modified:
- Update Android library to v4.17.0
Fixed:
- WebGL compile issues related to iOS framework targeted as Any Platform
November 9th, 2016
facebook-unity-sdk-7.9.0.zip - Facebook SDK 7.9.0
v7.9.0 Facebook SDK
BREAKING CHANGE:
- With code stripping enabled minimum unity version is 5.4.1p3 https://unity3d.com/unity/qa/patch-releases/5.4.1p3. Without code stripping the link.xml of the unity sdk can be removed.
Fixed:
- Issue with il2cpp compilation on Android
- get_activeBuildTarget not being supported
- Error setting user agent on some browsers
v4.17.0 Audience Network SDK
Modified:
- Update to Audience Network SDK for Android/iOS SDK 4.17.0
July 28th, 2016
facebook-unity-sdk-7.8.0.zip - Facebook SDK 7.8.0
v7.8.0 Facebook SDK
BREAKING CHANGE:
- WebPlayer is no longer supported
Added:
- Support for Facebook Games Arcade platform, project named Facebook.Unity.Arcade
- Facebook.sln that contains Facebook.Unity, Facebook.Unity.Arcade, Facebook.Unity.Editor, and Facebook.Unity.Tests
Modified:
- Update to Facebook SDK for Android/iOS SDK 4.14.0 / 4.14.0
- Refactor Facebook.Unity to include only core SDK logic
- Refactor editor code into separate project named Facebook.Unity.Editor
- Refactor native iOS code into separate project
- Refactor SDK example into UnitySDK project, this project is main SDK project
v4.13.0 Audience Network SDK
Modified:
- Update to Audience Network SDK for Android/iOS SDK 4.14.0
July 6th, 2016
facebook-unity-sdk-7.7.0.zip - Facebook SDK 7.7.0
v7.7.0 Facebook SDK
Modified:
- Update to Facebook SDK for Android/iOS SDK 4.13.2 / 4.13.1
v4.12.0 Audience Network SDK
Modified:
- Update to Audience Network SDK for Android/iOS SDK 4.13.0
June 7th, 2016
facebook-unity-sdk-7.6.0.zip - Facebook SDK 7.6.0
v7.6.0 Facebook SDK
Modified:
- Update to Facebook SDK for Android/iOS SDK 4.12.0
Fixed:
- Editor NPE on init
- NPE when using graph api on web and hitting a url that returns a list instead of a json object.
v4.12.0 Audience Network SDK
Modified:
- Update to Audience Network SDK for Android/iOS SDK 4.12.0
April 18th, 2016
facebook-unity-sdk-7.5.0.zip - Facebook SDK 7.5.0
v7.5.0 Facebook SDK
Added:
- Automatic activate and deactivate app event logging for Android. Calling activte app is still required for WebGL.
Modified:
- Update to Facebook SDK for Android/iOS SDK 4.11.0
- isLoggedIn returns false when token is expired
- For some methods the RawResult field for webgl or webplayer has changed.
Fixed:
- Token issued during init on WebGL didn't contain permissions
- Cancel not being set on result for some dialogs on WebGL.
- Error not being set on result for some dialogs on WebGL.
- NPE on Android when Unity activity was killed during login flow
v4.11.0 Audience Network SDK
Modified:
- Update to Audience Network SDK for Android/iOS SDK 4.11.0
Febuary 1st, 2016
facebook-unity-sdk-7.4.0.zip - Facebook SDK 7.4.0
v7.4.0 Facebook SDK
Added:
- Ability to specify the graph api version though FB.GraphApiVersion
Modified:
- Update to Facebook SDK for Android v4.9.0
- Update to Facebook SDK for iOS v4.9.1
Fixed:
- In editor cannot call login from outside OnGui
v4.9.0 Audience Network SDK
Modified:
- Update to Audience Network SDK for Android v4.9.0
- Update to Audience Network SDK for iOS v4.9.1
December 9, 2015
facebook-unity-sdk-7.3.0.zip - Facebook SDK 7.3.0
v7.3.0 Facebook SDK
BREAKING CHANGE:
- Moved the location of Unity plugin files, see Upgrade Guide for more information.
Added:
FB.Mobile.RefreshCurrentAccessTokento explicitly refresh access tokens on iOS & Android- Ability to specify JS SDK locale and debug mode in
FB.Init
Modified:
- Update to Android and iOS SDK 4.8.2
Fixed:
- Crash when Unity activity suspends during login or share via the Facebook app on Android
- File not found issue on version Unity 5.3 when no android manifest exited at plugins/android/AndroidManifest.xml
v4.8.2 Audience Network SDK
BREAKING CHANGE:
- Moved the location of Unity plugin files to under Audience Network Folder
Modified:
- Updated to Android and iOS SDK 4.8.2
Fixed:
- Issue with Android builds where impression callbacks never get triggered when impressions occur. This affects the usage of
NativeAdWillLogImpression,AdViewWillLogImpressionandInterstitialAdWillLogImpression. - Race condition that impacted compatibility with Android v4.7+ SDKs
- File not found issue on version Unity 5.3 with missing AndroidManifest.xml
November 2, 2015
facebook-unity-sdk-7.2.2.zip - Facebook SDK 7.2.2
v7.2.2 Facebook SDK
Fixed:
- Issue where get graph requests would fail on webplayer
- Issue where custom app events would fail fail to fire
v4.7.0 - Audience Network
No Changes for Audience network and package remains at version 4.7.0
October 26, 2015
facebook-unity-sdk-7.2.1.zip - Facebook SDK 7.2.1
v7.2.1 Facebook SDK
Fixed:
- Fixed crash due to legacy access token format for apps previously running Facebook SDK for Unity v6.0.0 or earlier
- Fixed access token is now available in the onInitCallback
- Fixed possible duplicate symbol with MakeStringCopy method on iOS
v4.7.0 - Audience Network
No Changes for Audience network and package remains at version 4.7.0
v7.2.0 - October 13, 2015
facebook-unity-sdk-7.2.0.zip - Facebook SDK 7.2.0
Facebook SDK
Added:
- Texture property to IGraphResult for handling some cases where Graph API redirects to an image. eg:
/me/picture - Editor login retrieves user id and permissions from provided access token
Modified:
FB.APIcalls are now versioned and default to Graph API v2.5- Updated underlying iOS SDK to 4.7
- Updated underlying Android SDK to 4.7
- Editor dialog windows now have an opaque background
- The SDK download is now packaged as a zip archive. It contains the unitypackage for the Facebook SDK for Unity and now additionaly the Audience Network Unity plugin.
Fixed:
- Filter not being set properly for
app_non_useron iOS FB.IsInitializednot being set to true insideFB.Initcallback
Audience Network
Added
- Audience Network unitypackage in the SDK zip. Refer to the Audience Network Documentation for more information.
v7.1.0 - September 21, 2015
facebook-unity-sdk-7.1.0.unitypackage - Facebook SDK 7.1.0
Refer to the Upgrade Guide for detailed information about upgrading from v6 to v7.
BREAKING CHANGE:
- Unity 4 is no longer supported. Unity 5 is required
- Facebook functionality within the Unity Editor is now mocked out, we encourage you test on native platforms (iOS, Android, and Web)
- Full Screen dialogs with Web Player are no longer supported
- SDK has been namespaced to
Facebook.Unity FB.Loginhas been split intoFB.LoginWithReadPermissionsandFB.LoginWithPublishPermissionsFB.Feedhas been replaced withFB.ShareFeed. Note: Consider usingFB.ShareLink, which is optimized for mobile sharingFB.GetAppLinkreplacesFB.GetDeepLinkand adds support for App LinksFB.LogAppEventreplacesFB.AppEvents.LogEventFB.LogPurchasereplacesFB.AppEvents.LogPurchaseFBResulthas been replaced by typed callbacks for each method- Callbacks are now typed, eg:
IGraphResultforFB.API
Added:
- Support for Unity 5
- Support for the WebGL Build Target
- Support for Hybrid Deployment
FB.ShareLinkaddedFB.Mobile.ShareDialogModeadded to specify the dialog mode forFB.ShareLinkon iOS and AndroidFB.Mobile.AppInviteadded support for App InvitesAccessTokenclass addedFB.Mobile.FetchDeferredAppLinkDataadded
Modified:
- Updated underlying iOS SDK to 4.6
- Updated underlying Android SDK to 4.6
- Minimum Android SDK API is now v15
- Minimum iOS target version is now 7.0
- Building for Web Player no longer uses the integrated plugin
Fixed:
FB.Initcallback not being called- Lost FB session across game launches
- Lost FB login screen after minimizing the app on Android
- Null Pointer Exception occurring during login on Android
- Login callback not being called when switching back to app on Android
- App freeze when logging in a second time before first login completes on Android
- FB class not found after upgrading from an old version
- Callback not being called after a game group join
- Fixed FB.GetDeepLink on Web
v6.2.2 - April 14, 2015
FacebookSDK-150414.unitypackage - Facebook SDK 6.2.2 build 150414
Fixed:
- ReRequesting permissions with iOS
- Android crash when UnityActivity is destroyed in background
- FB.Feed erroneously returning cancelled
v6.2.1 - January 28, 2015
FacebookSDK-150128.unitypackage - Facebook SDK 6.2.1 build 150128
Fixed:
- OnInitCompleted called twice on iOS in certain situations
- FB.Feed ignoring 'toId' on Android
v6.2 BETA - December 2, 2014
FacebookSDK-141202-beta.unitypackage - Facebook SDK 6.2 BETA build 141202
Fixed:
- Fixed the iOS 8 keyboard orientation bug
Modified
- Updated underlying iOS and Android SDK versions to 3.20
- Now defaults to calling Graph API v2.2
v6.1 - December 17, 2014
FacebookSDK-141217.unitypackage - Facebook SDK 6.1 build 141217
Release version from 6.1 Beta build 141020. No major updates since beta release.
Added:
- Support for native Share dialog in Android
Fixed:
- Fix issue in Android where clicking 'login', cancelling, and then clicking 'login' again would cause a crash
- Fix for "null reference" errors showing in console when displaying any FB dialogs while inside the editor
- Canvas login will now re-ask for declined permissions
- Fixed issues caused by compiler #defines on Unity 4.6 beta and 5.0 beta
- Improved p-list handling for iOS build flow
Modified:
- Updated underlying Android and iOS SDKs to 3.17
- Now defaults to calling API v2.1
- Interactive console: Split login button into "login" and "get publish_permissions" to follow our own recommendations
- Interactive console: added AppRequest filter groups example
v6.0 - August 11, 2014
FacebookSDK-140805.unitypackage - Facebook SDK 6.0 build 140805
BREAKING CHANGE:
- FB.AppRequest signature changed to support filters on mobile
Added:
- Games Groups functionality
- Support for multiple app ID's selectable at runtime on iOS
Fixed:
- Windows Phone 8 still unsupported, but the SDK no longer causes build errors on this platform
- Login orientation no longer fixed to portrait on Android
Modified:
- Underlying iOS, Android and JS SDKs are now post f8 versions. This means SDKs are initialized as using version 2.0 of the graph API.
- PublishInstall replaced with ActivateApp
v5.1 - April 1, 2014
FacebookSDK-140401.unitypackage - Facebook SDK 5.1 build 140401
Added:
- Introducing structured requests
Fixed:
- Fixed a minor bug where an Android function would be referenced on all platforms if you defined your own DEBUG compile flag
Modified:
- The web dialog DLL is now signed by Unity. This is to support the change, new in Unity 4.5, of requiring all DLLs loaded via Security.LoadAndVerifyAssembly() to be signed
v5.0.4 BETA - February 20, 2014
FacebookSDK-140220-beta.unitypackage - Facebook SDK 5.0.4 BETA build 140220
Added:
- The SDK now allows for runtime specification of an app id for Android through
FB.Init
Fixed:
- Fixed a Windows 8 build/compilation bug
- Fixed landscape orientation bug on Android
- Fixed a problem on Android where, if no permissions were being asked for during login, it did not even ask for basic authorization
- Made it safe to use a preprocessor symbol named
DEBUG
Modified:
- The deep link value with which an app is started no longer gets overwritten by later, interapp calls on iOS
- The SDK treats empty login callbacks in iOS as cancelled login attempts
v5.0.3 BETA - January 23, 2014
FacebookSDK-140123-beta.unitypackage - Facebook SDK 5.0.3 BETA build 140123
Added:
- You can now log into Facebook and get real data from within the Unity editor.
- Support for cold starts on iOS.
Fixed:
- FB.Feed has a working toId field now
- Fixed a bug where FB.AppId could be incorrect at times.
- Fixed a bug on canvas where the centering didn't work in Internet Explorer
- Fixed a bug with feed dialogs displaying incorrectly on Android tablets
- Fixed a bug where FB.Feed callbacks weren't called on Android
- Feed dialogs in iOS using the “toId” field will correctly fall back to web dialogs since native dialogs doesn’t support it
- The plist appending has been fixed in ios
Modified:
- Access tokens on canvas will auto refresh now
- On Android, the Facebook plugin no longer requires its own MainActivity
- Frictionless request will work for Android
- The login screen has been polished up for Android
- Upgrade underlying Android SDK to 3.6.0
- Upgrade underlying iOS SDK to 3.11.0
- We now make access token expiration times accessible
- Total size of the SDK has been trimmed by a few megabytes
v4.3.6 - November 21, 2013
FacebookSDK-131121.unitypackage - Facebook SDK 4.3.6 build 131121
Added:
- Added some additional error checking for Android key hash setup errors
- Android key hashes are accessible from the SDK as FB.Android.KeyHash
- Added canvas centering and padding
Fixed:
- Fixed a bug in canvas Feed dialog where a post with just an image would break it
- Fixes for Unity 4.3 on iOS and Android
- Url scheme suffixes on iOS
- Will always call the login callback, even if cancelled
- Fixed FB dialog background screen darkening not working on UI elements
Modified:
- Updated interactive console sample
- Remove older-style auth flow from InteractiveConsole demo
- Updated the Android SDK to 3.5.2
v4.3.4 - October 22, 2013
FacebookSDK-131022.unitypackage - Facebook SDK 4.3.4 build 131022
Fixed:
- FBResult.texture fixed on iOS
Modified:
- Allow programmatic control of FB.Init
- Remove older-style auth flow from InteractiveConsole demo
If you are upgrading from a pre-4.3.3 version, please read the warning below.
v4.3.3 - October 13, 2013
FacebookSDK-131013.unitypackage - Facebook SDK 4.3.3 build 131013
Added:
- FB.API() supports binary data for uploading screenshots
- App Events are now exposed via FB.AppEvents.LogEvent()
- Invoking URL exposed via FB.GetDeepLink()
Fixed:
- Consistent return values for api calls across Android, iOS, and canvas
- "Interactive Console" test app screen size fixed for non retina iPhones
- Added ability to disable context menu on canvas
- Debug logs now much less verbose
- We now use Unity projects to avoid resource id conflicts
Modified:
- Underlying SDKs updated to 3.8 for iOS and 3.5 for Android
As of this version, we've changed the Android plugin to use a library project instead of a .jar file. Unfortunately this means a lot of resources moved around, and if you just import a new version of the Facebook SDK over the top of an old one you will end up with some duplicate files. Please delete Assets/Facebook and Assets/Plugins/Android and reimport the new SDK along with any other plugins you are using. Also delete Assets/Plugins/Android/android-support-v4, Assets/Plugins/Android/AndroidManifest.xml, and Assets/Plugins/Android/FacebookSDK.jar. This is a one-time only task which should not need to be repeated for future versions.
v4.2.4 - September 24, 2013
FacebookSDK-130924.unitypackage - Facebook SDK 4.2.4 build 130924
Added:
- Re-added
Deletemethod broken in 4.2.1 - Mixed permissions dialog support for Android
Fixed:
- iOS crashed if login button hit more than once while first request was sent
- Fixed a bug where programs built with the SDK could not be debugged with visual studio
- Trimmed newline from the keyhash for Android
Modified:
- FB.init no longer raises an exception if it can't connect to the internet
- Renamed 'Facebook' game object to 'UnityFacebookGameObject' to reduce chance of name conflict
v4.2.1 - September 12, 2013
FacebookSDK-130912.unitypackage - Facebook SDK 4.2.1 build 130912
BREAKING CHANGE:
We introduced a breaking change on this new SDK that will affect how callbacks are called. All callbacks passed to FB SDK methods, except for Init(), will now receive a FBResult object instead of a string.
To read more about the FBResult object, you can check out the Unity SDK Delegate documentation.
FBResult is mainly a wrapper around Unity's WWW class, so it has almost the same interface. To get a string value out of the FBResult object, you will now have to check FBResult.Text. Also, you can now check for errors by seeing if FBResult.Error is not null. Where applicable, you can also get an image texture with FBResult.Texture.
Modified:
- Adding
JSONto theFacebooknamespace, so the SDK works better with other plugins (it is now atFacebook.MiniJSON.Json) - Adding a "cancelled" callback to the dialogs
Fixed:
- Calling
FB.Init()on Android doesn't show the login dialog every time - Session is properly cached on iOS
- Changing the Multi Friend Selector to only send apprequests when "Done" is clicked
- Fixed
FB.InitandFB.Logincallback ordering problem
v3.1.2 - September 6, 2013
FacebookSDK-130903.unitypackage - Facebook SDK 3.1.2 build 130906
Thank you for your feedback! We deeply appreciate your help in making the SDK better.
Modified:
- Call the dialog callback, even when a dialog is cancelled, on mobile platforms
- Clean up the code in the Interactive Console example app
Fixed:
- Correctly handle mixed read/write permissions on iOS
- Smartly merge changes to AndroidManifest.xml rather than simply writing them to a newly-created manifest
- Made default sharing audience "friends" rather than "none" on mobile platforms
- Improve cooperation with other plugins
- Invoke iOS native dialogs, not web dialogs, when available
v3.1.1 - September 3, 2013
FacebookSDK-130903.unitypackage - Facebook SDK 3.1.1 build 130903
Fixed:
- Several issues on Android, particularly one that prevented apps from requesting permissions beyond basic authorization
- Build problems preventing the Facebook SDK from working with other plugins
Modified:
- Reduced package size
v3.1 - August 26, 2013
FacebookSDK-130826.unitypackage - Facebook SDK 3.1 build 130826
Fixed:
- Fixed problem with Graph API POST calls on iOS
- Improved default cross-domain support for Facebook Canvas
v3.0 - August 20, 2013
FacebookSDK-130820.unitypackage - Facebook SDK 3.0 build 130820
Modified:
- Changed
IsLoggedInfrom a method to a property, to match the other session properties - Removed
fromIDparameter from FB.Feed, as it's not useful in the context of Unity games
Added:
- New method
FB.Canvas.Payto invoke the payment dialog on Facebook Canvas - Improved editor experience: tooltips for
Initparams
Fixed:
- Issue where
FB.Feedfailed when given certaintoID,'Link, oractionNameparameters