Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6714651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:31:13+00:00 2026-05-26T08:31:13+00:00

I am trying to work on a web app that makes use of the

  • 0

I am trying to work on a web app that makes use of the Facebook PHP SDK with CakePHP as my framework.

Initially, I was pulling a bunch of facebook data in my controllers, but noticed that the Facebook API calls take a lot of time. So I thought about using cakePHP Shell Tasks in order to pull down the facebook data via scheduled cron jobs.

First a general question: is this the correct way to handle a situation like this? As in, using shell tasks to be used in cron jobs.

Secondly, currently my logic to connect to FB, pull down data, save into the db are all in controller actions. How can I access these actions from the shell Task?

Lastly, Facebook requires the user to be logged in to pull the data. If I use cron jobs, how will the user be logged in?

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:31:14+00:00Added an answer on May 26, 2026 at 8:31 am

    There are several ways in which you can address this issue.

    The easiest would probably be an asynchronous AJAX request to get the data while the user is browsing your site (this requires of course that the user can browse your site without actually “leaving” the page).

    If you’d go for delayed tasks with cron, (or beanstalkd, or delayed job, try Googleing them) you probably need some more privileges in your facebook integration, specifically the “offline access” feature. “This permission makes the access token returned by our OAuth endpoint long-lived.” You will then be able to make OAuth calls from a cake shell to retrieve the data.

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a large, multi-page, PHP web application for work where a
I'm developing an iphone app that makes use of of a UIWebView to display
I'm trying to make an app that can work on multiple devices. Desktop, Mobile
I'm trying to implement Facebook authentication in our web app, with server side processing
I'm trying to work out what a BizTalk call to a web service is
I am trying to work with the layout of my web application. It's not
I'm having a problem trying to make eclipse and aspectj work for Dynamic Web
I am trying to call a web service (using nusoap ), which work well
Trying to work with groupby so that I can group together files that were
I'm writing a small web app that will receive and parse tab-delimited text files

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.