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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:32:29+00:00 2026-06-03T03:32:29+00:00

I have looked through and couldn’t find the answer on here… We are doing

  • 0

I have looked through and couldn’t find the answer on here…

We are doing a promotional giveaway and have a ton of addresses of people trying to get free stuff. What we want to do is give the people who post most on our facebook wall a better chance of winning.

So I am trying to set something up (I’m guessing using Graphs API/FQL) that will pull the name of the person who posted to our wall or commented on one of our posts. If I can get a list like this, I have enough php/mysql experience that I can create the code to compare the name with the database and weight their entry.

Does anyone have a simple explanation on the code to pull just the names of the people who posted each time?

Thank you so much for your help!!

  • 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-03T03:32:30+00:00Added an answer on June 3, 2026 at 3:32 am

    Using FQL you can get the ids of those who posted on your page wall:

    SELECT post_id, actor_id
    FROM stream
    WHERE source_id = "PAGE_ID"
    

    and those who commented on posts:

    SELECT post_id, fromid
    FROM comment
    WHERE post_id = "POST_ID"
    

    You also should be able to combine them:

    SELECT post_id, fromid
    FROM comment
    WHERE post_id IN (SELECT post_id
                      FROM stream
                      WHERE source_id = "PAGE_ID")
    

    Once you have the ids you can simply query: https://graph.facebook.com/USER_ID and get the name of the user.
    If you have too many and don’t want to issue a request per one you might want to consider using the Batch Requests option.

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

Sidebar

Related Questions

I have looked through stack overflow and couldn't really find an answer. I have
I looked through the YAML for ruby documentation and couldn't find an answer. I
I looked through the related questions and couldn't find anything that addresses exactly what
I have looked through the source of Meteor and Handlebars.js, but couldn't find what
I've looked through some of the other posts but couldn't find an answer, so
Looked through many answers, but couldn't find one solving this. I have four (potentially
I have looked through the site and couldn't find a question that solved my
Ok.. I have looked through this site and just can't seem to find the
Composer is a PHP package manager. I have looked through the documentation here: http://getcomposer.org/
I looked through the available C-api for notes and couldn't find any API which

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.