Forum Xamarin.Android

Binding the new Facebook SDK (facebook-android-sdk-4.11.0)

RoniLichtmanRoniLichtman USMember
edited May 2016 in Xamarin.Android

I am trying to bind the new Facebook SDK and running into a bunch of compile errors. I have added the "facebook-android-sdk-4.11.0.aar" file under my binding project as a "LibraryProjectZip" and when compiling I get the following errors:

1>------ Build started: Project: FBBind, Configuration: Debug Any CPU ------ 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.GraphRequestAsyncTask.cs(9,23,9,44): error CS0534: 'GraphRequestAsyncTask' does not implement inherited abstract member 'AsyncTask.DoInBackground(params Object[])' 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.GraphRequestBatch.cs(552,51,552,54): warning CS0114: 'GraphRequestBatch.Get(int)' hides inherited member 'AbstractList.Get(int)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword. 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.GraphRequestBatch.cs(567,51,567,57): warning CS0114: 'GraphRequestBatch.Remove(int)' hides inherited member 'AbstractList.Remove(int)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword. 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.GraphRequestBatch.cs(9,23,9,40): error CS0534: 'GraphRequestBatch' does not implement inherited abstract member 'AbstractList.Get(int)' 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Internal.LikeActionController.cs(1891,93,1891,99): error CS0234: The type or namespace name 'Widget' does not exist in the namespace 'Com.Facebook.Share' (are you missing an assembly reference?) 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Internal.LikeActionController.cs(67,41,67,47): error CS0234: The type or namespace name 'Widget' does not exist in the namespace 'Com.Facebook.Share' (are you missing an assembly reference?) 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Internal.LikeActionController.cs(105,148,105,154): error CS0234: The type or namespace name 'Widget' does not exist in the namespace 'Com.Facebook.Share' (are you missing an assembly reference?) 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Internal.ShareInternalUtility.cs(98,132,98,138): error CS0234: The type or namespace name 'Widget' does not exist in the namespace 'Com.Facebook.Share' (are you missing an assembly reference?) 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Internal.ShareInternalUtility.cs(98,190,98,196): error CS0234: The type or namespace name 'Widget' does not exist in the namespace 'Com.Facebook.Share' (are you missing an assembly reference?) 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Internal.ShareInternalUtility.cs(98,51,98,57): error CS0234: The type or namespace name 'Widget' does not exist in the namespace 'Com.Facebook.Share' (are you missing an assembly reference?) 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Internal.LikeContent.cs(26,60,26,111): error CS0738: 'LikeContent.Builder' does not implement interface member 'IShareBuilder.Build()'. 'LikeContent.Builder.Build()' cannot implement 'IShareBuilder.Build()' because it does not have the matching return type of 'Object'. 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Model.AppGroupCreationContent.cs(106,60,106,111): error CS0738: 'AppGroupCreationContent.Builder' does not implement interface member 'IShareBuilder.Build()'. 'AppGroupCreationContent.Builder.Build()' cannot implement 'IShareBuilder.Build()' because it does not have the matching return type of 'Object'. 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Model.AppInviteContent.cs(26,60,26,111): error CS0738: 'AppInviteContent.Builder' does not implement interface member 'IShareBuilder.Build()'. 'AppInviteContent.Builder.Build()' cannot implement 'IShareBuilder.Build()' because it does not have the matching return type of 'Object'. 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Internal.VideoUploader.cs(80,53,80,63): error CS0507: 'VideoUploader.FinishUploadWorkItem.Parameters': cannot change access modifiers when overriding 'protected' inherited member 'VideoUploader.UploadWorkItemBase.Parameters' 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Internal.VideoUploader.cs(309,53,309,63): error CS0507: 'VideoUploader.StartUploadWorkItem.Parameters': cannot change access modifiers when overriding 'protected' inherited member 'VideoUploader.UploadWorkItemBase.Parameters' 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Internal.VideoUploader.cs(544,53,544,63): error CS0507: 'VideoUploader.TransferChunkWorkItem.Parameters': cannot change access modifiers when overriding 'protected' inherited member 'VideoUploader.UploadWorkItemBase.Parameters' 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Model.GameRequestContent.cs(119,60,119,111): error CS0738: 'GameRequestContent.Builder' does not implement interface member 'IShareBuilder.Build()'. 'GameRequestContent.Builder.Build()' cannot implement 'IShareBuilder.Build()' because it does not have the matching return type of 'Object'. 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Model.ShareHashtag.cs(26,60,26,111): error CS0738: 'ShareHashtag.Builder' does not implement interface member 'IShareBuilder.Build()'. 'ShareHashtag.Builder.Build()' cannot implement 'IShareBuilder.Build()' because it does not have the matching return type of 'Object'. 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Model.ShareContent.cs(15,69,15,120): error CS0535: 'ShareContent.Builder' does not implement interface member 'IShareModelBuilder.ReadFrom(Parcel)' 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Model.ShareContent.cs(15,69,15,120): error CS0535: 'ShareContent.Builder' does not implement interface member 'IShareBuilder.Build()' 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Model.ShareContent.cs(307,52,307,103): error CS0535: 'ShareContent.BuilderInvoker' does not implement interface member 'IShareModelBuilder.ReadFrom(Parcel)' 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Model.ShareContent.cs(307,105,307,145): error CS0535: 'ShareContent.BuilderInvoker' does not implement interface member 'IShareBuilder.Build()' 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Model.ShareMedia.cs(27,69,27,120): error CS0535: 'ShareMedia.Builder' does not implement interface member 'IShareModelBuilder.ReadFrom(Parcel)' 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Model.ShareMedia.cs(27,69,27,120): error CS0535: 'ShareMedia.Builder' does not implement interface member 'IShareBuilder.Build()' 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Model.ShareMedia.cs(238,52,238,103): error CS0535: 'ShareMedia.BuilderInvoker' does not implement interface member 'IShareModelBuilder.ReadFrom(Parcel)' 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Model.ShareMedia.cs(238,105,238,145): error CS0535: 'ShareMedia.BuilderInvoker' does not implement interface member 'IShareBuilder.Build()' 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Model.ShareOpenGraphValueContainer.cs(15,69,15,120): error CS0535: 'ShareOpenGraphValueContainer.Builder' does not implement interface member 'IShareModelBuilder.ReadFrom(Parcel)' 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Model.ShareOpenGraphValueContainer.cs(15,69,15,120): error CS0535: 'ShareOpenGraphValueContainer.Builder' does not implement interface member 'IShareBuilder.Build()' 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Model.ShareOpenGraphValueContainer.cs(740,52,740,103): error CS0535: 'ShareOpenGraphValueContainer.BuilderInvoker' does not implement interface member 'IShareModelBuilder.ReadFrom(Parcel)' 1>C:\Users\Roni\documents\visual studio 2015\Projects\App1\FBBind\obj\Debug\generated\src\Com.Facebook.Share.Model.ShareOpenGraphValueContainer.cs(740,105,740,145): error CS0535: 'ShareOpenGraphValueContainer.BuilderInvoker' does not implement interface member 'IShareBuilder.Build()' ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Any ideas how to get Facebook to work with Xamarin.Android?

Sign In or Register to comment.