Requested value 'xxx' was not found.

Aug 1, 2009 at 5:26 PM

Hi!

Just started exploring the Facebook API and this dev toolkit but having problems getting started.
I've followed the instructions in the .doc and also tried the sample desktop app.
Both, my test app and the sample app give me the same error after logging in "Requested value 'xxx' was not found."

Can anyone help me with this?

thx,
felix

Aug 2, 2009 at 7:35 AM

Are you making an adult website?

Aug 2, 2009 at 1:33 PM

lol... no, not quite. ;)

Aug 2, 2009 at 7:16 PM

Facing the same problem here :(

any solutions ?

Aug 2, 2009 at 10:31 PM
Edited Aug 2, 2009 at 10:36 PM

:::::::::::::::::::::  EDIT  :::::::::::::::::::::

I just realized that you needed help with a desktop application.  My bad.  This code won't help you.  But it may help others.

:::::::::::::::::::::  END OF EDIT  :::::::::::::::::::::

 

I'm no expert at this API.   I'm just doing what works for me. 

For the login part, I didn't bother using the API.  I think of the API as being best for code-behind work.  For the front-end stuff, I use the Facebook fbml & javascript library.

Here's how I created my login:

1.  Create an HTML file called 'xd_receiver.htm', FB calls this after the user logs in.  No content other than what you see here is needed.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Cross-Domain Receiver Page</title>
</head>
<body>
<script
src="http://static.ak.facebook.com/js/api_lib/v0.4/XdCommReceiver.js?v2"
type="text/javascript">
</script>
</body>
</html>

 

2.  Open the .aspx page where you want the login to occur.

    Now, replace

 

<html xmlns="http://www.w3.org/1999/xhtml">

 

    with

 

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">

 

3.  Between the <head> and </head> tags, put this fbml: (Replace apikey with ur api key.

 

 <script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"></script>
<script type="text/javascript">
 FB.init("YOURAPIKEY", "xd_receiver.htm");
//To reload page after state change (login/logout), use this instead.
  //FB.init("YOURAPIKEY", "xd_receiver.htm", {"reloadIfSessionStateChanged":true});
</
script>

4. Within the body, place this code wherever you want the button to come up. You can change the button size by specifying 'short', 'medium' or 'long'.
With the API, you can also show the button only when a user is not logged into facebook.
 <fb:login-button length='long'></fb:login-button>


You should be up and running now.



 

Aug 3, 2009 at 7:27 AM

Well, I would go the same route if I'd develop a web app, but in my case I try to write a desktop app with C#.

Aug 10, 2009 at 2:38 AM

I have the same problem with skafoelix when I try to write a desktop application using C# ! And I don't know about this exception: {"Requested value '...' was not found."}

Please help skafoelix and me! Thank you very much!

Aug 10, 2009 at 4:02 AM

Me too (VB desktop). The Download link from Microsoft pointed me to v1.2 IMHO.

I got "Requested value 'NOTConservative' not found which suggests it was looking for a User's Politics entry.

Downloaded the latest version and it went away.

Seth