aire32 / fbpwn

Automatically exported from code.google.com/p/fbpwn
0 stars 0 forks source link

Failed to get User ID while logging in (version 0.1.8) #65

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Execute ./run.sh
2.Add account
3.Login

What is the expected output? What do you see instead?
Expected to add a new account to FBPwn and be logged in successfully. However, 
the app crashes and I get "Failed to get User ID while logging in" error in 
log.html (see attached)

What version of the product are you using? On what operating system?
Version 0.1.8 on Ubuntu Linux (3.2.6)

Please provide any additional information below.
Primary language is set to English US. Still doesn't work.

However, I notice the url once I log into my facebook account takes me to the 
following homepage url "http://www.facebook.com/?sk=welcome" rather than a url 
like "http://www.facebook.com/?id=<userid> which seems required by FBPwn to 
obtain the user id according to this code segment:

-----------------

 String accountID;
        try {
            if (profileURL.contains("&")) {
                int index = profileURL.indexOf('=') + 1;
                accountID = profileURL.substring(index, profileURL.indexOf("&"));
            } else {
                int index = profileURL.indexOf("facebook.com/") + "facebook.com/".length();
                if (profileURL.contains("?")) {
                    accountID = profileURL.substring(index, profileURL.indexOf("?"));
                } else {
                    accountID = profileURL.substring(index);
                }
            }
        } catch (Exception ex) {
            accountID = "Couldn't get ID";
            Logger.getLogger(FacebookManager.class.getName()).log(Level.WARNING, "Failed to get User ID while logging in");
        }
-------------------------------- 
https://code.google.com/p/fbpwn/source/browse/src/fbpwn/core/FacebookManager.jav
a?r=73

Would be nice to have a way to start the app so a user could explicitly specify 
a user id if it could not be found automatically (either as an optional arg 
from command line or a pop-up window in the ui).

Thanks,
E

Original issue reported on code.google.com by Edwin...@gmail.com on 15 Feb 2013 at 6:22

GoogleCodeExporter commented 8 years ago
same here i got this kind of error in the log.html file when can it be fixed?

Original comment by kassimt...@gmail.com on 21 Feb 2013 at 10:28

GoogleCodeExporter commented 8 years ago
same here too :(

Original comment by benoitra...@gmail.com on 8 Jun 2013 at 9:09

GoogleCodeExporter commented 8 years ago
I have the same problem: "Failed to get User ID while logging in" in 
"fbpwn.core.FacebookManager" class.

When will the problem solve?

Original comment by banze...@gmail.com on 19 Jul 2013 at 11:48

GoogleCodeExporter commented 8 years ago
Same issue here. Is there a workaround to force FB to log in at the correct URL?

Original comment by xxsegfau...@gmail.com on 18 Feb 2014 at 7:23

GoogleCodeExporter commented 8 years ago
Exactly same issue

Original comment by raphaelb...@gmail.com on 3 Jun 2014 at 8:35