Currently I am developing an application with C# which uses the Facebook API. I will keep posting about this but now I’d like to write about an error that I came across and post the solution.
If you are familiar with the Facebook API you know how it works. You can write an application which uses any features of the facebook API but when you are actually requesting data a built-in login window appears which asks for your login details to Facebook. If you provide the correct username and password the data you requested from your application is being displayed (or rather you can use the requested data as you wish).
It was between the login and the data display when my application gave me the error message “requested value ‘UnitedKingdom’ was not found” and it crashed. To resolve this error, this is what you should do:
Open the original Facebook API project (if you downloaded it from Microsoft’s website, the default installation directory is C:\Program Files\Coding4Fun\Facebook\Source). Look for the file “location.cs” which contains an enum list of all countries, states (US) and so on.

Simply open that file for editing and search for the enum called public enum Country. Add the value UnitedKingdom to this list, recompile the project and you are done. Don’t forget to add the newly created dlls as references to your project.