facebook-sdk-for-unity icon indicating copy to clipboard operation
facebook-sdk-for-unity copied to clipboard

FB SDK v15.1.0. FB Messenger crashes on startup when using FBSDKMessageDialog

Open MTPirate89 opened this issue 2 years ago • 3 comments

Checklist

Environment

Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:

  • Unity Editor Version: 2020.3.33f1
  • Unity SDK Version: 15.1.0
  • Installation Platform & Verison: [iOS] version 15.7.3

Goals

Send invite url via FB Messenger

Expected Results

FB Messenger opens with list of recipients

Actual Results

FB Messenger crashes on start, see attached crash log

Code Samples & Details

I have native plugin for Unity that runs next code to run FB Messenger to send invite URL to my friends. With the latest FB SDK messenger crashes on startup

    FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
    content.contentURL = [NSURL URLWithString:url];
    
    [FBSDKMessageDialog showWithContent:content delegate:self];

Issue appeared after upgrading FB SDK from v14.1.0 to v15.1.0. FB Messenger crash log attached

Messenger 05.02.2023, 11-01.txt

MTPirate89 avatar Feb 10 '23 14:02 MTPirate89

@MTPirate89 Could you try the latest UntiySDK 16.0.0? (https://developers.facebook.com/docs/unity/change-log)

JordiFB avatar Mar 03 '23 12:03 JordiFB

@JordiFB Result is the same, still not working

MTPirate89 avatar Mar 04 '23 09:03 MTPirate89

hi, how did you fix this

haolifeng415 avatar Apr 26 '24 03:04 haolifeng415