Asked by:
Using Facebook on Your Windows 8 Desktop. Socialite App Stalled Login / Unable to Logon Solution

General discussion
-
Hello,
While it definitely isn't a message that comes in time, it still might be helpful for those keen on communicating and wanting their Socialite app working on Windows 8. I am copying my post from this topic because I think it might come helpful for newcomers.
Thanks to this page, I managed to make the Socialite working for me.
My Italian is even worse than my English, but thankfully I don't need to write in it (although I would really love to learn it).
Here's my re-writing of the provided instruction.
The key to enabling the Socialite app is patching. To get the stalled log-in problem fixed, you need to fix the Jscript file used by Socialite and manually fill the following authentication properties:
- currentUserId
- currentUserAccessToken
IMPORTANT! Please be warned that this operation is HIGHLY INSECURE and I DO NOT SUGGEST YOU FOLLOW IT IN ANY WAY. Following these steps you may put your account security AT RISK. This operation involves using your TOKEN. Exposed tokens POSE HIGH SECURITY RISKS. DO THIS AT YOUR OWN RISK!
1. Logon into the system with administrative privileges. Alternatively, you may just start Windows Explorer under a user account with administrative . This is only necessary to take ownership on the app folder.
2. Open the program folder %ProgramFiles% and locate the Applications folder. This is a hidden folder and you may not see it if showing hidden files and folders is not enabled in your system.
To show hidden files and folders, switch to the View tab in the Windows Explorer's ribbon and set the Hidden items checkbox in the Show/hide group.
3. Right-click the %ProgramFiles%\Applications folder, choose Properties, and switch to Security tab.
On the Security tab click Advanced and click Change link next to the Owner to take ownership. Confirm UAC request and type your user account name in the Enter the object name to select (examples) box within the Select User, Computer, Service Account, or Group dialog box. Click OK to add your user account. Notice that your account is now listed next to Owner in the Advanced Security Settings for %FOLDERNAME% dialog box.
4. Set the Replace all child object permissions with inheritable permissions from this object checkbox to make yourself the owner of all subfolders. (You skip this step and set this only for the Socialite's app folder at a later time).
5. Navigate to %ProgramFiles%\Applications\microsoft.socialite_1.0.0.31_neutral_neutral_8wekyb3d8bbwe\js\ folder and locate the Socialite.js script file.
6. Select the script file, press Ctrl+C, then Ctrl+V to make a backup copy of this file. To be on the safe side, give the file a .bak extension.
7. Right-click the Socialite.js script and choose Edit to open the file for editing in Notepad.
8. In the Notepad opened locate the following line:
Socialite.currentUserId = Socialite.Storage.getValue
9. In the following steps, we are going to change the code block:
Socialite.currentUserId = ""; Socialite.currentUserAccessToken = ""; Socialite.currentUserId = Socialite.Storage.getValue(Socialite.Constants.facebookUserIdKey); Socialite.currentUserAccessToken = Socialite.Storage.getValue(Socialite.Constants.facebookUserAccessTokenKey);
10. Retrieve your Facebook User ID, which you need to place between the quotes in the
Socialite.currentUserId = "";
line.
To do that, open your Facebook page in your browser and locate your user name in the URL used to access your page (like yournickname for the URL http://www.facebook.com/yournickname). Paste the yournickname after the http://graph.facebook.com/ and navigate the URL (that is open the http://graph.facebook.com/yournickname address in your browser). Your browser will prompt for downloading a Jscript file. The script will have yournickname as its file name, like yournickname.js
Save this script to a location and open it in the Notepad. In the Notepad locate the ID like
{ "id": "12345", "name":
Copy the number in quotes. Return back to the Notepad window with Socialite.js script and paste the copied number as the value of the currentUserId property, like:
Socialite.currentUserId = "12345";
Press Ctrl+S to save changes to Socialite.js
11. Retrieve your Facebook token, which you need to place between the quotes in the
Socialite.currentUserAccessToken = "";
line.
WARNING: THIS REQUEST RETURNS YOUR TOKEN, THAT IS YOUR ENCODED PASSWORD. THE TOKEN IS RETURNED IN PLAIN TEXT.
!IMPORTANT: I DON'T KNOW WHAT THE VALUE OF THE client_id PARAMETER IS! Obviously, it's a 15-digit Facebook userID, but WHOS ID THIS IS?
(Is it an ID of the Socialite app on Facebook?)
To retrieve the token, open the following page in your browser (https://www.facebook.com/dialog/oauth?response_type=token&display=popup&client_id=171463892915039&redirect_uri=https%3A%2F%2Fwww.facebook.com%2Fconnect%2Flogin_success.html&scope=user_photos,read_stream,publish_stream,user_checkins,publish_checkins,friends_checkins,offline_access,status_update)
This should substitute for the URL like: https://www.facebook.com/connect/login_success.html#access_token=HEREGOESYOURTOKEN&expires_in=0after being executed in the address bar. The page will show Success.
Copy the alpha-numeric string between the #access_token= and &expires_in from the URL returned to the address bar (https://www.facebook.com/connect/login_success.html#access_token=HEREGOESYOURTOKEN&expires_in=0). This is your token.
Return back to the Notepad window with Socialite.js script and paste the copied string as the value of the currentUserAccessToken property, like:
Socialite.currentUserAccessToken = "HEREGOESYOURTOKEN";
Press Ctrl+S to save changes to Socialite.js
12. Comment out the line in the Socialte.js that retrieves your FaceBook ID, facebookUserIdKey, (because we have already specified your ID right in script):
// Socialite.currentUserId = Socialite.Storage.getValue(Socialite.Constants.facebookUserIdKey);
Press Ctrl+S to save changes to Socialite.js
13. Comment out the line in the Socialte.js that retrieves your FaceBook token, facebookUserAccessTokenKey, (because we have already specified your token right in script):
// Socialite.currentUserAccessToken = Socialite.Storage.getValue(Socialite.Constants.facebookUserAccessTokenKey);
Press Ctrl+S to save changes to Socialite.js
14. Close the Socialite.js and run the Socialite app. The app should now automatically log into your Facebook account without prompting you for your credentials.
Well this is the world we live in And these are the hands we're given...
Wednesday, February 22, 2012 9:46 AM