Bug 11059 - MonoTouch broke our Facebook bindings
Summary: MonoTouch broke our Facebook bindings
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 6.3.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
Depends on:
Reported: 2013-03-11 20:47 UTC by Dan Abramov
Modified: 2013-03-12 08:40 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Dan Abramov 2013-03-11 20:47:39 UTC
We've had this code in our Facebook binding definition:

        [Field ("FBSessionDidSetActiveSessionNotification", "__Internal")]
        NSString DidSetActiveSessionNotificationKey { get; }

        [Field ("FBSessionDidUnsetActiveSessionNotification", "__Internal")]
        NSString DidUnsetActiveSessionNotificationKey { get; }

        [Field ("FBSessionDidBecomeOpenActiveSessionNotification", "__Internal")]
        NSString DidBecomeOpenActiveSessionNotificationKey { get; }

        [Field ("FBSessionDidBecomeClosedActiveSessionNotification", "__Internal")]
        NSString DidBecomeClosedActiveSessionNotificationKey { get; }

It used to compile just fine. After updating to MT 6.3, it doesn't compile, showing an error at lines like this one:

        _DidSetActiveSessionNotificationKey = Dlfcn.GetStringConstant (Libraries.Internal.Handle, "FBSessionDidSetActiveSessionNotification");

saying Libraries doesn't define 'Internal'.  
What is the proper way of working around this? Is this a bug or by design?
Comment 1 Marek Safar 2013-03-12 03:47:03 UTC
what is the full error message?
Comment 3 Rolf Bjarne Kvinge [MSFT] 2013-03-12 08:40:56 UTC
This has been fixed.

maccore: de2a24547acfb8f5755f7567386a0f5733b8568e