Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

[facebook] Upgrade to SDK 3.5. #133

Closed
azchohfi opened this issue Apr 23, 2013 · 18 comments
Closed

[facebook] Upgrade to SDK 3.5. #133

azchohfi opened this issue Apr 23, 2013 · 18 comments
Assignees

Comments

@azchohfi
Copy link

If you try to make the facebook binding now it will download version 3.5 from Git and use the binding made for version 3.2.1. This is not working ok for me...

@dalexsoto
Copy link
Member

Working on it

@azchohfi
Copy link
Author

Great! \o/

@dalexsoto
Copy link
Member

Done, please note I have not updated samples yet, but binding its up to date. Will update samples ASAP

I have not tested them properly please if you encounter any errors let me know

See commit: 616e831

@azchohfi
Copy link
Author

Now the App does not start...
Could not load 'FacebookTestProj' for registration: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
and then
Assertion failure in int UIApplicationMain.

For some reason I have no idea why this is happening...

@dalexsoto
Copy link
Member

Do a device build and gist the build log please :) That error usually means a framework its not linking. Since device builds must resolve everything It wont build but will give us the missing symbols.

Alex

@azchohfi
Copy link
Author

I don't know if it has something to do with the fact that I'm using the Facebook SDK Component (http://facebooksdk.net/). Got it from the Xamarin Components site.
I think it has to do with this because the DLL this binding generates create a Facebook.dll, and so does the FacebookSDK...
To be able to reference both DLLs I renamed the binding dll to Facebook.iOS.dll. So I think this is the reason...
How to fix this?

@azchohfi
Copy link
Author

@dalexsoto
Copy link
Member

Yes thats the issue but it is not Xamarin.iOS only, you shouldn't have two assemblies with the same name :) so just rename the dll to something else. Actually the original name of the assembly is MonoTouch.FacebookConnect.dll.

Anyways will change the dll name to FacebookiOS.dll from now on

Alex

@dalexsoto
Copy link
Member

Should be fixed now on commit: 7bd0d0a

@okletsgo
Copy link

Now I can't compile it from git.

... skip ...
Time Elapsed 00:00:06.5260740
cp bin/Release/MonoTouch.FacebookConnect.dll FacebookiOS.dll
mdoc update -L /Developer/MonoTouch/usr/lib/mono/2.1/ --out docs binding/Facebook.dll
mdoc: Assembly binding/Facebook.dll not found.
See `mdoc help' for more information.
make: *** [build-docs] Error 1

@dalexsoto
Copy link
Member

@okletsgo Sorry, my bad. Now its fixed on commit: 94f4260

@azchohfi
Copy link
Author

@dalexsoto I think the renaming of the DLL is making it not work...
This is what I got:
error MT0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
System.IO.FileNotFoundException: Could not find file "/Volumes/Users/Alexandre/blablanla/bin/iPhone/Debug/MonoTouch.FacebookConnect".

It's trying to search for MonoTouch.FacebookConnect and it can't find it.
I changed the make file so it copies with the same name and now it compiled on the device.
My tip: Never rename DLLs!

@okletsgo
Copy link

okletsgo commented May 1, 2013

Thank dalexsoto.

And I wish a fix below.

/facebook/binding/Makefile
"git clone git@github.com:facebook/facebook-ios-sdk.git"
--> "git clone https://github.com/facebook/facebook-ios-sdk.git"

"https" is most general protocol than git. maybe most user cannot clone via git protocol. They will meet a error. because they don't know how to set public-key.

@Krumelur
Copy link
Contributor

Krumelur commented May 1, 2013

@azchohfi @dalexsoto Don't know, but I had a problem with renamed DLLs long ago and submitted a bug: https://bugzilla.xamarin.com/show_bug.cgi?id=8913
Maybe we have a related problem here?

@azchohfi
Copy link
Author

azchohfi commented May 4, 2013

Yup, I think we do. But a fast/easy fix for this is just to not rename the DLL.

@brettnagy
Copy link

@dalexsoto Any idea when you'll have a chance to update one of the two samples? I'm trying to read the Facebook ObjC examples, but that is PAINFUL :)

A million thanks in advance.

@brettnagy
Copy link

@dalexsoto I figured out how to convert Facebook's ObjC tutorials for use with the new Monotouch bindings. If the sample app hasn't been updated in a week or two, I'll take a stab.

@dalexsoto
Copy link
Member

New sample added showing Native Dialogs, iOS 5 support, FQL and Graph API see d721d74

Also improved a bit the usage of GraphObjects.

Hope this helps

Alex

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants