ianlee-dev / facebook-java-api

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

Invalid Parameter Facebook error when call method auth_getSession #198

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. From my web application, I invoke http://www.facebook.com/login.php?
api_key=xxxx&v=1.0   (replace xxxx with api_key)
2. I log in using my facebook uid and password
3. Facebook return back the auth_token in my callback url.
4. When I try to obtain the session using the auth_getSession method, the 
error "Invalid Parameter" gets returned.
My core code is:
FacebookXmlRestClient faceClient = new FacebookXmlRestClient(api_key, 
secret); 
String fbSessionKey = faceClient.auth_getSession(auth_token);
(it fails here)

What is the expected output? What do you see instead? I should obtain a 
facebook session string.

What version of the product are you using? On what operating system?
2.1 on Linux

Please provide any additional information below.

Original issue reported on code.google.com by eokw...@gmail.com on 28 Apr 2009 at 12:20

GoogleCodeExporter commented 8 years ago
Is your Facebook application in web or desktop mode? You can see this setting 
on the 
facebook.com/developers application settings screen.

Original comment by david.j....@googlemail.com on 1 May 2009 at 7:03

GoogleCodeExporter commented 8 years ago
Closing. This will be a Desktop mode issue. Feel free to reopen if that's not 
the
case. Thanks.

Original comment by david.j....@googlemail.com on 1 May 2009 at 9:03

GoogleCodeExporter commented 8 years ago
I was able to resolve that problem. Now the new problem is:
When I invoke method below, only title of the feed appears. The short 
story or image does not appear. 
faceClient.feed_publishUserAction(bundleId, templateData, images, 
targetIds, bodyGeneral, storySize);

I posted this problem here:
http://code.google.com/p/facebook-java-api/issues/detail?id=200&can=4

Original comment by eokw...@gmail.com on 1 May 2009 at 1:00

GoogleCodeExporter commented 8 years ago
can you share with us how you resolved the previous problem?

thanks!

Original comment by gilad...@gmail.com on 18 Jun 2009 at 10:05

GoogleCodeExporter commented 8 years ago
Hi all,
My app is web application but I still get invalid parameters.
It's work fine before but the error happened from yesterday.
can you help verify it?
It's very need for me now. I can figure what is happing :(
please help, Thanks.

Original comment by thanh.ki...@gmail.com on 19 Jun 2009 at 11:11