decline all page invite like requests on facebook

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
shahincanada
Posts: 7
Joined: Mon Apr 12, 2021 8:57 am

decline all page invite like requests on facebook

Post by shahincanada » Mon Apr 12, 2021 9:06 am

iMacros for CR v10.1.0, Free, CR Version 89.0.4389.114 (Official Build) (64-bit), Win10.

Hi,

Can someone help me decline all page invite like requests on facebook ? I tried making a macro, but got stuck on line 3:

VERSION BUILD=1010 RECORDER=CR
URL GOTO=https://www.facebook.com/pages/?category=invites
TAG POS=5 TYPE=SPAN ATTR=CLASS:bp9cbjyn<SP>j83agx80<SP>taijpn5t<SP>c4xchbtz<SP>by2jbhx6<SP>a0jftqn4
TAG POS=1 TYPE=SPAN ATTR=TXT:Decline
TAG POS=6 TYPE=SPAN ATTR=TXT:Confirm

basically for each request, there is a unique "ATTR=CLASS", so I don't know how to identify it to batch decline all. This line represents the "three dots menu button "..." which open up the menu to click "decline", and then "confirm"

If anyone can help me with this or some other trick, this has been a pet peeve of mine for a while when using fb.

cheers

I'm in google chrome, windows 10
Last edited by shahincanada on Tue Apr 13, 2021 5:18 am, edited 1 time in total.
chivracq
Posts: 9714
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: help with facebook macro

Post by chivracq » Mon Apr 12, 2021 8:41 pm

shahincanada wrote:
Mon Apr 12, 2021 9:06 am
Hi,

Can someone help me decline all page invite like requests on facebook ? I tried making a macro, but got stuck on line 3:

Code: Select all

VERSION BUILD=1010 RECORDER=CR
URL GOTO=https://www.facebook.com/pages/?category=invites
TAG POS=5 TYPE=SPAN ATTR=CLASS:bp9cbjyn<SP>j83agx80<SP>taijpn5t<SP>c4xchbtz<SP>by2jbhx6<SP>a0jftqn4
TAG POS=1 TYPE=SPAN ATTR=TXT:Decline
TAG POS=6 TYPE=SPAN ATTR=TXT:Confirm
basically for each request, there is a unique "ATTR=CLASS", so I don't know how to identify it to batch decline all. This line represents the "three dots menu button "..." which open up the menu to click "decline", and then "confirm"

If anyone can help me with this or some other trick, this has been a pet peeve of mine for a while when using fb.

cheers

I'm in

Code: Select all

google chrome, windows 10

"FCIM" for me to have a look, read my Sig... ("google chrome, windows 10" is not good enough...)
=> FCI:
iMacros for CR v10.1.0, 'Free'/'PE'...?, CR v...?, Win10.
(Edit your OP to add all missing Info...)

+ Can you give a more descriptive Title to your Thread...?, "help with facebook macro" is pretty "vague"...
=> "Decline all page invite like requests on facebook" from your 1st Sentence would be perfect for example... :idea:
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
shahincanada
Posts: 7
Joined: Mon Apr 12, 2021 8:57 am

Re: help with facebook macro

Post by shahincanada » Tue Apr 13, 2021 5:19 am

thanks, I've updated the post

chivracq wrote:
Mon Apr 12, 2021 8:41 pm
shahincanada wrote:
Mon Apr 12, 2021 9:06 am
Hi,

Can someone help me decline all page invite like requests on facebook ? I tried making a macro, but got stuck on line 3:

Code: Select all

VERSION BUILD=1010 RECORDER=CR
URL GOTO=https://www.facebook.com/pages/?category=invites
TAG POS=5 TYPE=SPAN ATTR=CLASS:bp9cbjyn<SP>j83agx80<SP>taijpn5t<SP>c4xchbtz<SP>by2jbhx6<SP>a0jftqn4
TAG POS=1 TYPE=SPAN ATTR=TXT:Decline
TAG POS=6 TYPE=SPAN ATTR=TXT:Confirm
basically for each request, there is a unique "ATTR=CLASS", so I don't know how to identify it to batch decline all. This line represents the "three dots menu button "..." which open up the menu to click "decline", and then "confirm"

If anyone can help me with this or some other trick, this has been a pet peeve of mine for a while when using fb.

cheers

I'm in

Code: Select all

google chrome, windows 10

"FCIM" for me to have a look, read my Sig... ("google chrome, windows 10" is not good enough...)
=> FCI:
iMacros for CR v10.1.0, 'Free'/'PE'...?, CR v...?, Win10.
(Edit your OP to add all missing Info...)

+ Can you give a more descriptive Title to your Thread...?, "help with facebook macro" is pretty "vague"...
=> "Decline all page invite like requests on facebook" from your 1st Sentence would be perfect for example... :idea:
techimac
Posts: 393
Joined: Fri Feb 20, 2015 9:27 pm

Re: decline all page invite like requests on facebook

Post by techimac » Tue Apr 13, 2021 8:24 pm

use m.facebook.com
its much easier
Available for custom iim, javascript iMacros scripts
techimac
Posts: 393
Joined: Fri Feb 20, 2015 9:27 pm

Re: decline all page invite like requests on facebook

Post by techimac » Tue Apr 13, 2021 8:35 pm

share screenshot
Available for custom iim, javascript iMacros scripts
shahincanada
Posts: 7
Joined: Mon Apr 12, 2021 8:57 am

Re: decline all page invite like requests on facebook

Post by shahincanada » Wed Apr 14, 2021 4:43 am

techimac wrote:
Tue Apr 13, 2021 8:35 pm
share screenshot
Hi,

thanks for your suggestion, when I go to the mobile site, the URL I posted redirects to this: https://m.facebook.com/pages/launchpoint/?_rdr

do you know how I can get to the page invites page from the mobile site ?

also you said share screenshot, you want a screenshot of the page I am looking at ? I will do that now.
shahincanada
Posts: 7
Joined: Mon Apr 12, 2021 8:57 am

Re: decline all page invite like requests on facebook

Post by shahincanada » Wed Apr 14, 2021 5:41 am

sorry I don't see how to upload an image here.

but if you have a facebook account and you go to this URL:

https://www.facebook.com/pages/?category=invites

I think you'll see the button with the three dots which is to the right of the blue "accept"
techimac
Posts: 393
Joined: Fri Feb 20, 2015 9:27 pm

Re: decline all page invite like requests on facebook

Post by techimac » Wed Apr 14, 2021 6:15 am

I dont use facebook
You can upload image to a website like https://imgbb.com/ and share link here
Available for custom iim, javascript iMacros scripts
shahincanada
Posts: 7
Joined: Mon Apr 12, 2021 8:57 am

Re: decline all page invite like requests on facebook

Post by shahincanada » Wed Apr 14, 2021 6:30 am

chivracq
Posts: 9714
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: decline all page invite like requests on facebook

Post by chivracq » Wed Apr 14, 2021 7:06 am

techimac wrote:
Wed Apr 14, 2021 6:15 am
I dont use facebook
You can upload image to a website like https://imgbb.com/ and share link here
shahincanada wrote:
Wed Apr 14, 2021 6:30 am
here:

Code: Select all

https://ibb.co/bNJVYcQ

Hey Guys, could you both read and follow the Forum Rules...!? :!:
=> Screenshots need to be uploaded directly to the Forum and not to any 3rd party Pix Hosting Site...

And hum, I was going to say that the Screenshot was "not really needed" to understand the Scenario (if you have a FB Account indeed), but hum, the "Wording" of the Page "for me" is slightly different, although I also use FB in English, so it might still be useful...
=> "Invites" = "Invitations" for me... // "Page Invites" = "Page invitations" for me... // + No "Notifications" Element/Header for me... (On CR76.)

But I'll be a bit impressed @techimac if you find a working Script only from the Screenshot..., directly and without being able to test... (in less than 50 Lines, @OP is using the 'Free' Version..).
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
shahincanada
Posts: 7
Joined: Mon Apr 12, 2021 8:57 am

Re: decline all page invite like requests on facebook

Post by shahincanada » Wed Apr 14, 2021 8:54 am

Hi chivracq

I have clicked "notification settings" from the https://www.facebook.com/pages/ site

Now I have it set to: "you'll no longer see notification dots for pages"

about images, I don't see a way to upload, only a button with the following code: "Image" ... I guess I have to input a path from my desktop there ?

anyways, I hope what I have just done solved the problem.

I have an unrelated question: I am not an "advanced" computer guy, I'm just wondering what are useful things I could do with imacros that might improve my "computing" ... Is there any post on this forum about interesting uses for imacros by "average joes" like me ?

cheers
chivracq wrote:
Wed Apr 14, 2021 7:06 am
techimac wrote:
Wed Apr 14, 2021 6:15 am
I dont use facebook
You can upload image to a website like https://imgbb.com/ and share link here
shahincanada wrote:
Wed Apr 14, 2021 6:30 am
here:

Code: Select all

https://ibb.co/bNJVYcQ

Hey Guys, could you both read and follow the Forum Rules...!? :!:
=> Screenshots need to be uploaded directly to the Forum and not to any 3rd party Pix Hosting Site...

And hum, I was going to say that the Screenshot was "not really needed" to understand the Scenario (if you have a FB Account indeed), but hum, the "Wording" of the Page "for me" is slightly different, although I also use FB in English, so it might still be useful...
=> "Invites" = "Invitations" for me... // "Page Invites" = "Page invitations" for me... // + No "Notifications" Element/Header for me... (On CR76.)

But I'll be a bit impressed @techimac if you find a working Script only from the Screenshot..., directly and without being able to test... (in less than 50 Lines, @OP is using the 'Free' Version..).
techimac
Posts: 393
Joined: Fri Feb 20, 2015 9:27 pm

Re: decline all page invite like requests on facebook

Post by techimac » Wed Apr 14, 2021 11:17 am

looks doable in 50 lines

use "Accept" as anchor TAG
Then use relative position of "..." element

Inspect element in detail

tag pos=1 type=...... extract=txt
tag pos=R1 type=........

after that do the remaining clicks

TAG POS=1 TYPE=SPAN ATTR=TXT:Decline
TAG POS=6 TYPE=SPAN ATTR=TXT:Confirm



Can be run in loop
Available for custom iim, javascript iMacros scripts
shahincanada
Posts: 7
Joined: Mon Apr 12, 2021 8:57 am

Re: decline all page invite like requests on facebook

Post by shahincanada » Mon Apr 26, 2021 7:45 am

chivracq wrote:
Wed Apr 14, 2021 7:06 am
techimac wrote:
Wed Apr 14, 2021 6:15 am
I dont use facebook
You can upload image to a website like https://imgbb.com/ and share link here
shahincanada wrote:
Wed Apr 14, 2021 6:30 am
here:

Code: Select all

https://ibb.co/bNJVYcQ

Hey Guys, could you both read and follow the Forum Rules...!? :!:
=> Screenshots need to be uploaded directly to the Forum and not to any 3rd party Pix Hosting Site...

And hum, I was going to say that the Screenshot was "not really needed" to understand the Scenario (if you have a FB Account indeed), but hum, the "Wording" of the Page "for me" is slightly different, although I also use FB in English, so it might still be useful...
=> "Invites" = "Invitations" for me... // "Page Invites" = "Page invitations" for me... // + No "Notifications" Element/Header for me... (On CR76.)

But I'll be a bit impressed @techimac if you find a working Script only from the Screenshot..., directly and without being able to test... (in less than 50 Lines, @OP is using the 'Free' Version..).
chivracq: the "show notification dots" button did nothing. can you give me the exact URL for your "invitations" page ? I wonder why I don't see that. otherwise I will have to try techimac's method. Also just to clarify, did you find a way to turn off notifications from the page you are referring to ?
Post Reply