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

  • Home
  • SEARCH
  • 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 8894135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:25:10+00:00 2026-06-14T23:25:10+00:00

I need help getting started with some PHP coding. I am writing an app

  • 0

I need help getting started with some PHP coding. I am writing an app for Facebook that requires voting. I’ve got the whole framework up and working and I’ve created functionality where the user can click under a photo to vote on it. The client wants people to be able to vote for as many photos as they like but I need to figure out how to limit it so they can’t vote for the same one over and over again.

My first thought was that I would set the SESSION variables to somehow link to the Facebook user’s account so the app could identify the person but I’m trying to create more of a ‘custom tab’ than an actual app. If the only method to do this is by create an app where the user has to opt-in, then so be it, but I was wondering if there’s a way to set a cookie and do this without the user logging into to the app or the app having to be opted in to.

As you can tell, I’m pretty new to PHP and MySQL coding so I’m still learning.

Thanks for pointing me in the right direction!

  • 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-14T23:25:11+00:00Added an answer on June 14, 2026 at 11:25 pm

    You probably can find what cookies FB uses and hack it to get the user id but it’s a bad thing to do and it probably violates FB terms.

    A much better approach to create an engaging experience for your users would be to create a FB app and ask your users to accept if they want to vote.

    In order to make them have a better experience, I suggest you the following flow:

    When the user clicks the voting button, you check if he has accepted your app and prompt him to do so, in case he hasn’t.

    When he accepts you app, you grab his data, put it in your db and check if there’s already a relationship between the user and the thing to be voted and act accordingly (if the user has already voted for that item, you don’t compute the double vote and inform him).

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

Sidebar

Related Questions

Hi I need some help on getting started with creating my first algorithm; I
I'm just getting started with ASM (NASM), and need some help with the following
I'm still pretty new to perl and regex and need some help getting started.
I need some help in getting started with jQuery and autocompleting a username for
I need some help in getting this right, problem Write a function which takes
I am getting a little confused and need some help please. Take these two
Hi I have been playing around with MDX and need some very high-level getting-started
Got a problem that I'm having a hard time getting started on. Not a
Hi I'm very new to regex and I need some help with writing this
Need help getting Ember-Data working with Zend Rest. At first, I'm familiar with Zend

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.