Facebook Invites

By niknah Last update Oct 11, 2011 — Installed 274,383 times.

Fix For Friends Updating

in
Subscribe to Fix For Friends Updating 18 posts, 12 voices



Lox Myth User
FirefoxX11

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.

 
therock User
FirefoxWindows

thanks at last, i can add all the friends again
im really grateful thanks for everything, ;)

 
Silver_hand User
FirefoxWindows

I confirm, it work.

 
Austin Pereira User
FirefoxWindows

Yep it works! Your Rock LOX! PROPS TO YOU!!!!!!

 
Juha User
FirefoxWindows

Thx a lot. :)

 
MadBat User
FirefoxWindows

Well it seems to be working, but there is something strange.
I tried it on mafia empire, where the application page reports 96 friends.
But once it was done (I checked while it was running and it saw indeed 96 friends), I only had a list of 55 friends I could select from or add to my ME list.
Where did the other 41 go? Or is there something I'm missing in the working here?

 
ciante User
FirefoxWindows

it doesn't work with different localization

contains(@title,'Next')

to fix either change your language to english or change the word Next with the one in your language

 
therock User
FirefoxWindows

vanity URLs

 
Austin Pereira User
FirefoxWindows

To fix the problem with Vanity URL and not showing all yer friends using the app try this ::
replace 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]+)');

 
therock User
FirefoxWindows

problem solved thank you. now it shows up all 342 friends and the missing 40 to add ;)
btw its
if(a.href.indexOf("/friends/")<0>
instead of 0> is ) {
i guess i have to look for the same in the game quick invite script for the add all profiles on this page and change that to?
so:
var uidRe=new RegExp('profile.php.*id=([0-9]+)');
to
var uidRe=new RegExp('friends.*id=([0-9]+)');

;(

 
Austin Pereira User
FirefoxWindows

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

 
therock User
FirefoxWindows

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 ¬¬ .
the only solution that came to my mind was to make another proccess to add all friends with vanity url ids and include that in the script but is way out of my league.
is there a way to grab all my friends ids ,paste all in a txt and tell the sript to grab them. im just to tired of adding one by one i have 1496 friends and 995 have the vanity URL crap so search 1x1 their id is a pain in the ass.

 
Preacher User
FirefoxWindows

Does this mean that the script will be updated or are we on our own with the coding update?

 
ViXaY Xavier Scriptwright
FirefoxWindows

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!

 
Infidel007 User
FirefoxWindows

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.

 
therock User
FirefoxWindows

well i like to make a suggestion a fix for the add all profiles on this page,
the users with vanity url's are not showing up, with the add all profiles on this page, my suggestion is, if there is a way to include in your next update and add all friends function on this page, but that the sripts will grab all the ids of these hiding individuals(the ones with vanity urls), the problem is that almost half of the users base now use this feature. And some games as i explained earlier have a background door in wich you can invite anyone and add to your game pals ,with the only condition that the user is your friend.
so in some games i just go to my friends tab, right click the monkey icon, grab all profile on this page, and put the variable of the game example "footballtycon" and add any of my friends not just the ones with the aplication, so now i have 932 friend playing the game even if only 4 are playing such game
but the other half of friends 945 are hidden to the command because of the use of the vanity url.
and if i only use the add the ones with the aplication after a normal search only 4 people will add. and i discovered this by pure accident toying around with the script of "what happend if"
so well i hope any reader undestand my explanation!.
bye people.

 
jcppkkk User
FirefoxWindows

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

 
dinnerboy20 User
FirefoxWindows

can you guys make a script instead of us editing it... cause im lost on it...

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel