moreiracruz / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

Incorrect Signature when invoking facebook method via facebook http://api.facebook.com/restserver.php #273

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I am trying to create a Facebook note by making a direct http call to 
http://api.facebook.com/restserver.php using the FacebookJsonRestClient. 
The parameters required to make this call include: 
http://wiki.developers.facebook.com/index.php/Notes.create . After several 
trials, I always receive 104 - Incorrect Signature . I am using the 
signature receive from the cookie after the using logs in using Facebook 
connect. Below is the code I am running.

FacebookJsonRestClient client = new 
FacebookJsonRestClient(FACEBOOK_API_KEY, fbSessionSecret, fbSigSessionKey);

HttpConnector connector = new HttpConnector();
String url =  client.getServerUrl().toString() + "?" + 
"api_key=" + FACEBOOK_API_KEY +
"&call_id=" + System.currentTimeMillis() +
"&sig=" + fbSignatureObtainedFromFacebookConnectCookie +
"&v=1.0" +
"&uid=" + fbSigUser +
"&title=Test title" +
"&content='Test content'" +
"&method=Notes.create";

String noteId = connector.invoke(url); //using HTTPClient

What is the expected output? What do you see instead?
The noteId is expected to be received. Instead, I receive the error 
message: 104 - Incorrect signature

What version of the product are you using? On what operating system?
Using facebook-java-api 3.*

Please provide any additional information below.

Original issue reported on code.google.com by eokw...@gmail.com on 28 Nov 2009 at 1:33

GoogleCodeExporter commented 8 years ago
http://www.facebook.com/suaramedia
http://www.suaramedia.com

Original comment by MediaIn...@gmail.com on 19 Apr 2010 at 1:49

GoogleCodeExporter commented 8 years ago
http://www.suaramedia.com

Original comment by MediaIn...@gmail.com on 19 Apr 2010 at 1:50