I had a game I’ve been working on that was using the 6.2 Facebook SDK, and I upgraded the SDK to 7.2 today. I’m now getting some serious errors. I removed the 6.2 SDK completely from my assets, as per Facebook’s upgrade guide, and when installing the new one, I don’t get the Facebook menu like it says I should, but I assume that’s due to compiler errors because of all the changes I’ll have to make.
My biggest error is the following:
Assets/Scripts/FBMain.cs(42,72): error CS0234: The type or namespace name HttpMethod' does not exist in the namespace Facebook’. Are you missing an assembly reference?
In FBMain.cs, I did make sure I added the Facebook.Unity namespace, so I’m not sure where my issue is or how to fix it. Any help would be greatly appreciated, and if I need to provide any code examples, let me know.
Assuming this is still correct, you need to add the Facebook namespace to your usings (you only have Facebook.Unity at the moment). Otherwise the method has been moved to the Facebook.Unity namespace in which case you can drop the Facebook prefix.