ritamnrg / facebook-java-api

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

FacebookJsonRestClient.3.0.2 stream_publish throws icom.google.code.facebookapi.FacebookException: Incorrect signature #316

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
 FacebookJsonRestClient facebook = new FacebookJsonRestClient( 
FB_APP_API_KEY, FB_APP_SECRET, FB_SESSION_KEY );
         FacebookJsonRestClient facebookClient = 
(FacebookJsonRestClient)facebook;         

        try {
            facebookClient.stream_publish("test facebook wall post!", null, 
null, null, null);

What is the expected output? Expected to have wall post with "test facebook 
wall post!" displayed 

do you see instead? I get an FacebookException

What version of the product are you using? 3.0.2

On what operating system?

Please provide any additional information below.

The application has passed authentication and is showing up under the 
user's list of applications but when trying to post a wall update using the 
above code (with correct token and secret) a FacebookException is thrown 
saying Incorrect signature

Original issue reported on code.google.com by cgswts...@gmail.com on 27 Apr 2010 at 12:57

GoogleCodeExporter commented 8 years ago
I have also encountered the same error when calling the stream_publish method 
with
the FacebookJsonRestClient

Original comment by likwong...@gmail.com on 27 Apr 2010 at 4:52

GoogleCodeExporter commented 8 years ago
Just wrote a simple Java program to test and it's ok.

Seems like the problem occur when calling the method in Grails (i.e Groovy)

Original comment by likwong...@gmail.com on 28 Apr 2010 at 6:08

GoogleCodeExporter commented 8 years ago
Find out the root cause for my case.
I have installed the acegi plugin which contain an older version of the
facebook-java-api (2.0.4) which doesn't has the stream_pubish method yet. 

@cgswtsu78 Suggest you to check if you have an older version of 
facebook-java-api on
your classpath

Original comment by likwong...@gmail.com on 28 Apr 2010 at 9:47