huuanh1987 / facebook-java-api

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

Error getting session, returned from fb #256

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. login
2. call client.auth_getSession(token);

What is the expected output? What do you see instead?
I was expecting to get the session

What version of the product are you using? On what operating system?
2.1.1

Please provide any additional information below.

The parameters that I post to the server are:

{
api_key=81cdc8814ffa2da61b17f3cbeb9fe658, 
auth_token=7be1825ad084f0d52363639c4402cdd0, 
call_id=1256153140114, 
format=xml, 
method=facebook.auth.getSession, 
sig=4f04aa03e0d6e6d5c619ea2aa8af3256, 
v=1.0
}

Error XML returned by fb server is:

<?xml version="1.0" encoding="UTF-8"?>
<error_response xmlns="http://api.facebook.com/1.0/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://api.facebook.com/1.0/
http://api.facebook.com/1.0/facebook.xsd">
  <error_code>100</error_code>
  <error_msg>Invalid parameter</error_msg>
  <request_args list="true">
    <arg>
      <key>api_key</key>
      <value>81cdc8814ffa2da61b17f3cbeb9fe658</value>
    </arg>
    <arg>
      <key>auth_token</key>
      <value>2b7a90a91fa3761729eb5429864968e7</value>
    </arg>
    <arg>
      <key>call_id</key>
      <value>1256153691088</value>
    </arg>
    <arg>
      <key>format</key>
      <value>xml</value>
    </arg>
    <arg>
      <key>method</key>
      <value>facebook.auth.getSession</value>
    </arg>
    <arg>
      <key>sig</key>
      <value>5a48f57512b348c878b9b0603bd9defb</value>
    </arg>
    <arg>
      <key>v</key>
      <value>1.0</value>
    </arg>
  </request_args>
</error_response>

Original issue reported on code.google.com by j4168418...@gmail.com on 21 Oct 2009 at 8:01