Refresh URL Facebook

Phoca Gallery - image gallery extension
xswer
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 25 Jul 2016, 21:18

Refresh URL Facebook

Post by xswer »

Hi

It is possible to refresh Facebook Albums from the frontend? I found this URL for refresh the FB Albums. How i can make a button for refresh in frontend?

Code: Select all

$refreshUrl	= 'index.php?option=com_phocagallery&task=phocagalleryc.loadextimgpgnfb&id='.$idCat.'&fbalbum='.$data['extfbcatid'].'&fbuser='.$data['extfbuid'].'&fblang='.$data['language'].'&fbafter='.$fbAfter .'&fbcount='.$fbCount.'&'. JSession::getFormToken().'=1';
Or it is a possibility to refresh one times every day?

Thanks you for the answer

Best Regards and a nice day

Xswer
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47822
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Refresh URL Facebook

Post by Jan »

Hi, to refresh it e.g. one time per day, you need to run some cron or similar program on your server which does it.

There is no frontend feature to import image information from Facebook. Importing can take a lot of time so when it will be abused it can slow down the server, this is why it is run on administration. :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply