Hi All,
I am trying to do one Unity game for Facebook
more info here
and I opened the sample project and I got the following error:
Assets/Scripts/MainMenu.cs(24,12): error CS0117: FB' does not contain a definition for GetAuthResponse’
For it, Could anybody help me to fix it?
Thanks in advance
Alejandro Castan
Same issue here. This is supposed to be an easy process but there is no indication in all the spaghetti of code what goes where or why. Even the FB dev pages where you set up and enable for Unity has issues that folks at stackoverflow have a whole range of how and what works when you put in your app domain. It refuses to accept my domain as a valid domain no matter how I use it http, www, no www, with / ending. without / and no matter what, it won’t stick. It is only errorless when it is empty. It takes the binary URL for the .unity3d on the same domain with no issues. Others had no problem, others had the same issues, others tried one way and it didn’t and then magically did.
In the other Interactive Console example that came with the FB SDK I followed the instructions and loaded it to my server with the same name as the binary URL in the FB Setting Up Your App page. The tutorial then says to input the facebook app URL appended with your App ID and voila! you are done and your app is on FB…and did so… I got a 404 error ‘not found’.heh… I am wondering if the SDK’s are now out of sync and calls deprecated or user error or bug on FB side… It is too early to pinpoint as I am new to the FB paradigm. Frankly…if I could simply get the FaceBook ID into a text box and their avatar pic into a texture2D quad I would be off to the races. I am a one step at a time guy and everything I find is scattershot or jargon oriented.
Sorry to lengthen the help request on you post Alejandro but maybe some experience will step forward and give those of us struggling with this a hint.
Hi Randy,
First of all, thanks for your comments.
I am very interested in making Unity games for Facebook but it seems that there are a lot a problems to fix them !
Hope that both Facebook and Unity support offer more tutorials and samples to go ahead in this topic soon…
Best Regards
Alejandro
My clients game is being put together and works fine. I cannot test some of the widgets without FB integration. It makes me look like bozo the clown to not be able to get a simple FB ID and pic on the stage in the UI. I woke up Friday and got my espresso and figured in an hour I would have it done as I had gone though the docs and read the tutorials and thought…OK…this tutorial will give me the chops to get what I need. I spent all day Friday, and all weekend trying to find out info on how to get rid of the “GetAuthResponse” or replace it with code that works but frankly there is not enough data out there to figure out what he was trying to do. The fact that the main tutorial throws errors when loaded is in my opinion …ridiculous. The git repository should be updated to the latest SDK.
Question Alejandro… Did you get the .zip at github or did you clone it using the command line? It occurred to me…but I do not know how github works implicitly, that the .zip may have an outdated commit and the command line clone may not have errors.
It would be nice to see a step by step tutorial that does not gloss over the most important parts. The one or two out there spend all the time on things Unity devs should know and the mysterious parts they just zip right by like we have been developing FaceBook apps for years and are just beginning Unity dev which is usually the opposite of the case.
Hi Randy,
Answering to your question. I downloaded the tutorial zip file from github and maybe I should to download it by clone but to be honest with you, I don’t know how to do it, Coiuld you teach me about this topic?
On the other hand, I send one post in Stackoweflow and I got the following answer about “GetAuthResponse” problem:
Thank you for pointing that out. The newest SDK eliminated the need for GetAuthResponse and we are in the process of updating the example code to reflect that. For now you can do this:
Delete the line:
FB.GetAuthResponse(LoginCallback);
and replace it with:
I changed the code it the “GetAuthResponse” error is not there anymore but I have another errors with Facebook references and I cannot find the Facebook tab in the Unity interface and maybe it can be the error and I could not fix this topic at the moment…
Thanks for you help
Best Regards
Alejandro
PS: Sorry for my little english…
Note: About Clone from github, I could download it with totoiseSVN
Hi Randy again
You are right ! I downloaded the clone from github and the last Facebook SDK for Unity ( Package 4.3.4 October 22, 2013) and I could fix this error.
But since that my English is little, I could not deploy the game (both Client.html and Client.unity3d file) an the server, for it, and sorry for my ignorance but Where I should to upload these files? Is there any special server to do it? Could I use filezilla to deploy the game in this server?
Thanks for your help
Best Regards
Alejandro