How to build an Facebook Bot

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] uh we are building a process facebook groups at the same time so you would have feel free to whatever [Music] thank you so much and [Music] let's oh [Music] [Music] hey [Music] is sorry guys um nice let's see if this is maybe a little bar if this maybe has a little bit less echo you guys let me know okay let me know if this is a little bit better so now it should be maybe hopefully a little bit better all right okay let's go back into the uh let's go back into the video so we are going to be uh posting a message to all of this and i said that i might build this process a little bit differently awesome thank you guys all right let's continue we are only starting from a scratch document from a document from a blank camera so let's call this facebook post facebook post part two and let's wait for this to load and by the way guys congratulations on new learning power automated desktop this is a great technology it is really giving you a heads up in the in the marketplace for jobs and also in whatever you are doing these skills are going to be on a big rise very soon anyways so what we want to do is we want to open an excel sheet and we want to get this inside of power automate now that is the first thing that we want to do so let's just start let's look for excel and here it is let's launch a new excel we are going to open a document we are going to look for the file that i have right here so this is called facebook groups let's look for it so it should be somewhere around here i think there we go so now that we have it that is a very good question so right now i am putting everything inside of one flow however it is much better to create uh to create multiple flows and then have one one flow that is orchestrating everything in addition to this for this flow since it is continuous we are not doing like we're not downloading 100 images and then uh uploading it doesn't have different steps it just has one step therefore i am not going to be building different parts of it if i had an authentication part i would build an authentication part maybe separate from this process like an authentication or a logout part at the end of each process now once it finishes let me know if that answers your question so after that we are gonna get the content of this so we are going to get it what is the quickest uh we are gonna get a value from a selection or a range of cells so we're gonna start at column one we're gonna start that roll one let's check out our excel sheet yeah i'm sorry for the echo hub that's that's that's that's that today sorry for the echo once again all right so we are going all the way down to line 43 here we go so with this what we're going to do we're going to get all of our data inside of powerpoint so we're going to have all the all of the yeah you can do it with google sheets uh same same kind of thing uh you will do it with google sheets but if you want to do it with google sheets i suggest using power automatic flow so there is let's check it out all right well this is loading while it's here it's loading so let's just create really quickly a flow so if you are using uh if you want to use google sheets you should use a power ultimate flow because it has already connection so all you have to do is look for sheets google sheets and you will get the rows let's see get rows you can use this you will get the rows you would select the file and select the worksheet after that you would connect to your process on power automate desktop and you can pass the data from power automatic flow onto your power ultimate that's not back to our process so we are reading this and now let's close our excel sheet so that we don't have anything else in memory let's just test this out see if it's working all right we got 43 rows 43 links all right now comes the fun out let's get one of these links let's get like this link right here let's see if i can copy it all right now comes the fun part so power ultimate is oh what is going on so linkedin facebook all these pages they have to deal with robots all the time so they built their uh their web pages so that robots cannot or they have a hard time what is going on here so the robots have a hard time uh automating their that page so that's why we have to be a little bit injured um we have to be a little bit smart and think outside of the box and we will be able to automate so let's go to a facebook page that we want to automate so let's go to facebook or what do you mean dtn [Music] all right let's select one of these groups for example well let's use one of my sample groups let's leave this group and let's go back to powerpoint now very quickly let's launch chrome let's start with this url and always maximize this just save yourself a couple of a couple of seconds it will everything will be much clearer so all right let's run this one more time also another good tip is keep running your process quite often uh just so you make sure that every time you open the browser the page hasn't changed and it's always the same and it's everything is still working all right so what we need to do is we need to click in here let's record it so we need to click in here and then we need to we cannot we cannot insert the text directly here because it's a div it's not an input field so i'll just click here i don't need to click anymore then i will type in something and then i will click so this is not a button also so i will click on this post and hope for the best let's see what happens so that's fine it has one let's finish this closet and let's finish it and let's see our floor but we have a few things that we have to get rid of after every recording so the navigator we will use it actually later on so now let's run our process once again and see if it's working so it should uh you shouldn't post anything actually it should just open and it's doing it on the other page that is great so what is missing from our process here is the way that we can send the text to the facebook group so we can do that in different ways but since facebook is not allowing us to stand in full input field we cannot insert the text via web automation so we have to look for we have to send keys to the browser so what is also important when we are sending keys to the browser is that the the part where we want to send the keys is active and is blinking and the browser is in front of in front of the mouse because we are sending the sending keys all right so let's add this this is a test we are going to uh send text as hardware keys this is gonna simulate like a person is typing in like if there is an up and down from the keyboard and mouse and this will inform the javascript and will make the process be more stable so we should also increase a little bit the delay between the keystrokes another thing that you should consider doing is increasing this to let's support 200 for now and let's also add a weight now since we are working with our with uh with facebook facebook is a web application they have checks and controls that make sure that you're not posting too often that you're not clicking like a machine and so on and so on therefore if you just click randomly without weights and without making any considerations about what you're doing and if just being a robot your account will get banned so but anyways let's uh add a little weight here of five seconds and let's add one more here of five seconds actually we can name this one two seconds now we can make this one three seconds since we are not adding any images so let's see if this is going to work all right let's start that's not facebook it should click in the post let's see if it's going to insert the text it has inserted the text a little bit too fast for my taste and this is the test all right so we have managed to insert it inside of this group but now comes the question how do we insert this in all of the groups that we want and also here is a little tip for everybody watching thank you so much for watching what happens when our process fails or what happens if it just breaks towards one two or three groups and then it just stops working after a while well it's most probably the selectors the selectors are being uh are being garbage or being annoying you you didn't select the right selector but just because that what page is slightly different since we were using the web recorder uh to spy the elements the position of the link only has changed therefore what you can do is either just buy the same element and in the same level just add the new one that you have this part so it will work on the first one and on the second one that you have the rear spot all right enough that you can also install using the web recorder uh which creates a hierarchical structure or path to your elements you can also use directly the ui and ui elements and this is going to create a css selectors that is just much longer to work with but it can be more stable so take those things into consideration i am also going to put this right to what was 10. and what else we need to create the loop and pause this not multiple on multiple pages so because i don't want to pose this onto the same page i will do something pretty interesting so i will create a new sheet i will take this message i'll put it here and i'll use this test group all right so we're gonna do it all the same group but many different types let's save this excellent and the next thing that we have to do can we record a but how you can turn on an extension is by using the ui recorder so you would use the desktop recorder or the ui element recorder and you would let's try that it's working a little bit by let's try the best recorder so we have that well obviously we could use the image recorder and click here and open the extensions but with the desktop recorder i believe that we can click it will take a little bit of figuring out how to get to the uh [Music] to this time right there i do not want to bore you guys right now because that will take me some discovering to do but it's just all about playing around and finding out what what kind of thing what's best there is no one way that works best there is always multiple ways of finding uh of or building the same process so since my lunch or kind of uh my snacks are waiting for me let's finish this process so let's add a for each so what are we going to add for each we're going to open the browser we are going to start clicking on the different things and there were added for each we are going to group on the excel data that we start and how simple is all of this we have already completed the entire process so just a little bit more of fine tuning we are going to launch a new chrome and then we are going to uh let's see what are we going to do then we are going to navigate to a new page so let's do that let's navigate to a new page and what is the page going to be is going to be the page that we have inside of our excel so that is going to be the current item that is created so what is the current item so when we create a for each for each size part all the data in your excel or we have extra excel sheet i'm going to go to each single line all those and each line is going to be called current items so that you can work with each line so here theoretically we should visit the first link the second link the third link and so on so click link on what page and let's add one more weight here and the process theoretically should be complete let's see what happens all right it is running it's going this is the first the first page it is writing something theoretically you should write something so this is a test this is a test it's posting it it's waiting what is going on aha all right let's see what happens okay so in the end it didn't finish so let's do something else let's fix our let's fix our horses slightly we are actually going to do something else we're going to remove this step we're going to add this step right here and what is this this is this is close so we need to add a little bit more time to the posting so we should give it like five seconds ah well uh that's a concussion so all these elements they're all waiting for the page to load so you see when i click on weight page load all of these are already waiting for the page to go but right when the page finishes loading i like to give it another one or two seconds just to make it more stable i've noticed that that makes it more stable in certain cases and in the long run when you're repeating the same thing dozens and dozens of times it it matters stability and operating the process kind of really really nice maybe one two times you don't need and maybe the weight but in the long run it really doesn't really make that much difference you're not only watching it you're not really watching it go but uh but yeah it makes the process more stable you can also use better weights like you can use weights that uh like uh wait for a file or wait for an element to appear on the web page which are which are just different and used in different in different situations but i in certain places like here on linkedin what since we are doing stuff that like the page appears and it's not appearing in the same instance it's appearing after a fraction of a millisecond or something like that well the robot is not waiting for any of that so we can create conflict there's also javascript that is triggered and so on so let's try this and launch new chrome well i cannot find the other way as well but all right we're gonna do it this way now so we're gonna close the browser actually no this is this is gonna take too long so let's navigate so let's put this back here let's add the current item six seconds okay so this should be good let's test love and see if it works all right rta champions i am pretty positive actually this time this is going to work so let's watch this robot one more time and by the way thank you all for tuning in today it has been great getting to know you guys and for your questions and sharing this sharing this process with you guys i am very sorry about the what is this okay so we had another issue let's try to fix another issue what is what is the issue is it with our excel file so let's see so this should ah okay okay so we did we didn't do a mistake so let's me let's fix this mistake and there we go now everything should be should be working let's try this one more time and by the way guys i want to know how you are using power ultimate write me in the comments or in the chat or wherever you want send me an email ping me on linkedin i want to know how you are using power automate what kind of processes you would like to see in the future what kind of automations are you afraid of being replaced by a robot or a lot of automations taking taking jobs and causing unemployment i'm just interested to know your point of view about automation about these technologies about the future of work with automations so write me get in touch and so on so is this working or is this not working so it seems like it's making a post let's see all right we made the post now it should navigate again back to the group all right it has navigated back to the group now we should write another post all right great it is writing another post now well that is a really cool uh cool use case in in e-commerce many processes that are on a repetitive basis or on orders or contacting clients selling sending them information they can be uh they can be automated by the way in my next video i'm going to be showing how for an excel sheet we can send a serious list of emails we can contact like people from an excel sheet and that is an example where we have different clients with different delivery dates and different borders inside of the excel sheet and we need to send them all the same email instead of using mailchimp or something else we're going to be using power ultimate so apparently this is working so we have automated something that is pretty repetitive and monotonous and boring but there is really no limit to what can be automated there is some crazy roles that i have on my virtual machines in the cloud that are doing things all day long and nobody suspects the thing they're just walking posting doing different things and growing different accounts and channels anyways ladies and gentlemen thank you so much for watching it has been no worries buddy guys thank you everybody for watching it has been a pleasure having you at my stream truly a great pleasure all of you are the champions i send you a big hug from italy and i will see you in the next live stream
Info
Channel: RPA Champion
Views: 166
Rating: 5 out of 5
Keywords: how to share post in all facebook groups at once 2021, how to share post in all facebook groups at once, share post in all groups, share your post in all facebook groups with one click, how to share post in all facebook groups at once from mobile, how to share post in all facebook groups, how to share post in all facebook groups just one click, Post Share in all Groups, how to post all fb groups at once, post to all facebook groups in one click, rpa champion
Id: wbLQw-jYAco
Channel Id: undefined
Length: 28min 38sec (1718 seconds)
Published: Mon Sep 27 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.