Fix For Friends Updating
![]() ![]() |
If you edit the script and make the following changes, you should find that the script works again for updating the friends using an application. **NOTE** I am only using this script to keep my FB lists up to date. This is a hack and you should use the authors version once it is updated. If any Greasemonkey/Javascript expert has any better solution, please post it here until the author can fix it correctly.
=================
Search for:
var ss=document.evaluate("//a[contains(@href,'/s.php') and contains(@href,'s=')]",document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);
Replace with:
var ss=document.evaluate("//a[contains(@href,'/social_graph.php') and contains(@title,'Next')]",document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);
=================
Search for:
if(href.indexOf("/s.php")>=0) {
Replace with:
if(href.indexOf("/social_graph.php")>=0) {
=================
Search for:
document.location.href="http://www.facebook.com/s.php?k=100004000&app_id="+appid;
Replace with:
document.location.href="http://www.facebook.com/social_graph.php?node_id="+appid+"&class=AppUserManager&edge_type=mutual&start=0";
=================
Save the script and try it out. |
![]() ![]() |
thanks at last, i can add all the friends again
|
![]() ![]() |
I confirm, it work. |
![]() ![]() |
Yep it works! Your Rock LOX! PROPS TO YOU!!!!!! |
![]() ![]() |
Thx a lot. :) |
![]() ![]() |
Well it seems to be working, but there is something strange.
|
![]() ![]() |
it doesn't work with different localization
to fix either change your language to english or change the word Next with the one in your language |
![]() ![]() |
vanity URLs |
![]() ![]() |
To fix the problem with Vanity URL and not showing all yer friends using the app try this ::
if(a.href.indexOf("/profile.php")<0> with this if(a.href.indexOf("/friends/")<0> ________________________________________ replace this profileRe=new RegExp('.facebook.com.*profile.php.*id=([0-9]+)'); with this profileRe=new RegExp('.facebook.com.*friends.*id=([0-9]+)'); |
![]() ![]() |
problem solved thank you. now it shows up all 342 friends and the missing 40 to add ;)
;( |
![]() ![]() |
No you dont need to change the "Game Quick invite script" var uidRe=new RegExp('profile.php.*id=([0-9]+)'); is correct /// The change I made just changed where the "FB Invites" script gathered the User Id from :: Rather than from the profile.php link on the search to the Mutual friend link, which still uses the User ID rather than any vanity URL |
![]() ![]() |
ok thanks for the clarification, i was asking this, because in some games you can add any friend not just the one with the application, so i just go to my profile, go to friends, right click the grease monkey icon, and use the command add all profiles on page, and again the ones with the vanity url are not showing up, really this vanity url is just a pain in the ass ¬¬ .
|
![]() ![]() |
Does this mean that the script will be updated or are we on our own with the coding update? |
![]() ![]() |
I have made the suggested changes by Austin & Lox Myth. Please try out the script now. If somebody would like to suggest more fixes please do so. And thanks a lot for helping out guys! |
![]() ![]() |
Is there a way that you can just make it downloadable with all the fixes? I do not know how to save or create or edit scripts. Thanks. |
![]() ![]() |
well i like to make a suggestion a fix for the add all profiles on this page,
|
![]() ![]() |
maybe can replace by
ss=document.evaluate("//span[@class!='UIPager_ButtonWrapper UIPager_ButtonDisabled']/a[@class='UIPager_Button UIPager_ButtonForward']",document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);
to work with different localization |
![]() ![]() |
can you guys make a script instead of us editing it... cause im lost on it... |


