Is it possible to post to facebook automatically?

Discussion in 'PHP' started by Fracisc, Feb 6, 2012.

  1. #1
    I am looking to make a script that will post new stuff from time to time (cron) to one of my facebook pages, as the page itself, not me as user. Is that possible?
     
    Fracisc, Feb 6, 2012 IP
  2. awood969

    awood969 Member

    Messages:
    186
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    40
    #2
    That is possible, the page will be assigned a userId like any normal user. You will need to use facebook's developer API and a cron job. Just set the cronjob to run at a specific time or every minute and run a check first of all. From there write a (presumably PHP) file to authenticate to that facebook user and post using the Graph API. You will need to authenticate the user manually to the App first before starting the cronjob.

    Hope that helps!

    Andrew
     
    awood969, Feb 9, 2012 IP