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 8098309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:02:28+00:00 2026-06-05T22:02:28+00:00

Facts: I’m running a FB contest where users are entered into a drawing simply

  • 0

Facts:

I’m running a FB contest where users are entered into a drawing simply by liking a specific post.

I can call $postid/likes in the Graph API Explorer while using the token generated by the Graph API Explorer and receive the proper information. It’s a simple result with user id/name pair which is all I need to generate a random winner.

I’m running a daily cron that collects all new likes for the post and puts them in a database so that I can track the number of entrants and pull out a winner from the pool easily. The script works and I get the expected data if I copy out the token from the Graph API Explorer call above and plug it into the script.

Problem:

Since the script above works when I copy out the active temporary token from the Graph API Explorer, shouldn’t I be able to do this programmatically? I can’t figure out how I am supposed authenticate when my daily cron runs (no user interaction) in order to get a new, valid, non-expired token. Since this is a cron running from the server, I obviously can’t authenticate through a user dialog.

  • 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-06-05T22:02:29+00:00Added an answer on June 5, 2026 at 10:02 pm

    You can create an app and then authenticate as that app. Access tokens granted to an app don’t expire so you’ll be able to code that into your cron job.

    Tread carefully with this. It looks like your contest violates the Facebook promotions guidelines:

    You must not condition registration or entry upon the user liking a Wall post.

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

Sidebar

Related Questions

Assume that the following facts are already entered into the Prolog database: father(X, Y)
An informative-sounding blog post from 2006 states these facts about using native prepared statements
I have a few questions that I hope clarity and facts can be fed
How can generic facts be stored in a database such as '3 injured in
Okay,...first the facts. I'm working on an ASP.Net project which validates it's users across
this is the facts I entered in the knowledge base and average takes a
What does it mean that new facts can be deduced basing on known facts
Few facts first: 1. I can only use ActionScript 2. 2. All files are
I know about that we can add facts dynamic at run time, mean fact1(+First,+Second).
How can I get the WorkingMemory to know about the facts written in the

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.