Быстрое приглашение друзей в группу Facebook

Данный пост был размещен в «Facebook Api» потому как хаб «Facebook» недоступен. За что и прошу прощение!
Недавно встал вопрос о приглашении друзей в группу facebook-a. Казалось бы нечего сложного, но не тогда когда более 1000 френдов. Поскольку я не особо сижу в FB и VK, я конечно же не знаю как сразу отметить всех в списке. Отмечать вручную, ясное дело не вариант, потому как затраты времени, сил и нервов не стоят того результата. Вот тут и родилась идея сделать это с помощью небольшого скрипта. Данный скрипт автоматически отмечает всех друзей в списке и отсылает инвайты, при минимуме действий с нашей стороны.
Кто сталкивался с такой потребностью, добро пожаловать под кат.


Как это работает:
1. заходим в нужную нам группу FB
2. в разделе «Пригласить друзей» нажимаем «Посмотреть все»
3. открываем консоль браузера: Chrome and Mozila (Ctrl+Shift+j)
4. вставляем данный код:

f=document.forms;
if(f)
	for(i=0;i<f.length;i++){
		if(f[i].className=='_s'){
			a=document.getElementById(f[i].id); 
			if(a){
				var _prof = '';
				for(i=0;i<a.elements.length;i++){
					e=a.elements[i];
					if(e.type=='checkbox' && !e.disabled){
						e.checked='checked';
						e.parentElement.className +=' selectedCheckable';
						if(_prof!=''){
							_prof +=',';
						}
						_prof += '"'+e.value+'":1';
					};
				}
				_prof = '{'+_prof+'}';
				a['profileChooserItems'].value=_prof;
				a.getElementsByTagName('button')[2].click();
			}
			break;
		}
	}


5. Нажимаем Enter
Вот и все, инвайты разосланы, мы довольны и у нас куча свободного времени!

Понравилась статья? - Поделись с другом!Share on Facebook0Share on VKTweet about this on TwitterShare on LinkedIn0Share on Google+0

Читайте также:

12 комментариев

  1. You have brought up a very fantastic details, regards for the post.

  2. Hello! Someone in my Myspace group shared this site with us so I came to look it over. I’m definitely loving the information. I’m bookmarking and will be tweeting this to my followers! Great blog and great design.

  3. I haven?¦t checked in here for some time since I thought it was getting boring, but the last several posts are great quality so I guess I will add you back to my daily bloglist. You deserve it my friend 🙂

  4. Simply want to say your article is as astonishing. The clarity in your post is just cool and i can assume you are an expert on this subject. Well with your permission let me to grab your RSS feed to keep up to date with forthcoming post. Thanks a million and please keep up the gratifying work.

  5. This is very interesting, You are a very skilled blogger. I have joined your rss feed and look forward to seeking more of your great post. Also, I’ve shared your web site in my social networks!

  6. I simply want to tell you that I am just very new to blogging and absolutely savored your blog site. Likely I’m planning to bookmark your blog post . You really have tremendous posts. Thanks for sharing with us your web page.

  7. A computer program called Antivi took over my computer. How do I get rid of it?

  8. I discovered your blog website on bing and check a number of your early posts. Preserve within the very good operate. I additional increase Feed to my MSN News Reader. Seeking forward to reading a lot more within you at a later time!…

  9. I would like to thnkx for the efforts you have put in writing this site. I’m hoping the same high-grade web site post from you in the upcoming as well. Actually your creative writing skills has inspired me to get my own website now. Really the blogging is spreading its wings quickly. Your write up is a good example of it.

  10. I am working on an educational website and the owners wanted an article section where I put articles they indicate on the site. The articles come from news/magazine and other online article/new sources. I have been listing ?Article Taken From: (URL)? and a link to the original article. I thought that was enough, but I have heard from a friend that it isn?t. . This site is NOT yet publicly online, so I can change things to be legal before it becomes a legal problem.. . What do I need as a citation to make sure I don?t infringe on anyone?s copyright?. Do I need to do anything else other than listing a citation & link to be legal?. . Thank You all for helping!. SRGR.

  11. I must express my thanks to this writer just for rescuing me from this type of predicament. Just after surfing throughout the search engines and getting proposals which were not pleasant, I was thinking my life was well over. Living devoid of the answers to the difficulties you’ve solved all through the write-up is a crucial case, as well as the kind that could have negatively damaged my entire career if I hadn’t encountered your blog post. Your main knowledge and kindness in playing with all the details was vital. I am not sure what I would have done if I had not come across such a point like this. I can at this moment relish my future. Thanks for your time very much for your professional and result oriented guide. I won’t hesitate to recommend your site to anyone who needs and wants recommendations about this area.

  12. Great website! I am loving it!! Will come back again. I am taking your feeds also

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *

+ 4 = 14