Hello Daniweb Community,
I have been talking on a couple Facebook groups such as sale pages where you post your own stuff for people to buy. Most groups like this have rules about bumping like once per day, every 12 hours etc...
So it got to the point where it became annoying to have to bump my posts every so oftern so I managed to construct this script that'll do it automatically with the help of a cronjob that can be set to bump at whatever time you like. So I have made a simple easy to use (ha may not easy to understand) script that'll bump and delete the "bump" comment that keep your post clean of exsessive bump comments.
Sorry but I made this a little while ago and forgot how I got my token, so you'll have to "Google" it. Once you've entered your token start gathering your pages.
So this section of the code here
$posts = [ "PAGE_NAME_GOES_HERE(This is only for your piece of mind knowing what page the ID's are for)" => [ "POST_ID_ONE", "POST_ID_TWO", "POST_ID_THREE" ], "PAGE_NAME_GOES_HERE(This is only for your piece of mind knowing what page the ID's are for)" => [ "POST_ID_ONE", "POST_ID_TWO", "POST_ID_THREE" ] ];
So as it say the page name is only so you know what page the ID's belong to, now for the POST ID (AKA the permenent link) example look at this link https://www.facebook.com/groups/YOUR_CHOSEN_GROUP/permalink/HERE_IS_THE_POST_ID/ to get the ID on when you look at the post, just under the persons name there is a timestamp. When you click that you'll be redirected to a page and if you look in the address bar there should be a link like the one above. So (for example) if done correctly the snippet above should end up looking like this
$posts = [ "YOUR_CHOSEN_GROUP" => [ "HERE_IS_THE_POST_ID1", "HERE_IS_THE_POST_ID2", "HERE_IS_THE_POST_ID3" ] ];
I hope this is understandable, any questions comment below (or if you saw this on Facebook just comment on my post of PM me).
If you happen to get stuck with setting this up, or have any questions please let me know below and I may be able to assist you.
To Facebook Users (That I probably brought here)
This may all be new to you and may not know the first thing about website development, so if you are interested in using this. Comment below or let me know back on Facebook.
Edited by joshl_1995