The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help with Cron Jobs

Discussion in 'General Discussion' started by tanjiajun34, May 5, 2010.

  1. tanjiajun34

    tanjiajun34 Registered

    Joined:
    May 5, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I want to it load a page in Facebook in every 1 hour, how can I do that by using a web hosting's cron job function.

    I having problems with how to make the server login my Facebook account?
    I tried to use Login | Facebook

    but it just don't work.
     
  2. cPanelJamyn

    cPanelJamyn Social Engineer
    Staff Member

    Joined:
    Jan 29, 2009
    Messages:
    105
    Likes Received:
    2
    Trophy Points:
    0
    As far as running a cron every hour, you could do that in cPanel by visiting:

    https://your-server.com:2083/frontend/x3/cron/index.html

    Under the "Add New Cron Job" >> "Common Settings" area, you'll find a dropdown for "once an hour". Of course, put the full command under the "Command" section. So that's basically the easy way to schedule a task for once an hour.

    Interacting with facebook is another issue entirely. I'm sure there are scripts out there that will do that, but if you test your theory directly on facebook, you'll see that it fails there too (example):

    Code:
    http://www.facebook.com/login.php?email=MYEMAIL&pass=MYPASS
    . I think you'll probably need to interact with it using POST instead.

    Keep in mind, the Facebook TOS may forbid this (automated interaction with their network under 3.2 and 3.11), so we can't assist you further. They may dislike what you're doing and disable your account, so I don't recommend it.
     

    Attached Files:

Loading...

Share This Page