Git Product home page Git Product logo

sorteosfb's Introduction

Sorteos FB

This software has been developed to create contests using Facebook data of a "fan page".

For example: You want to raffle an award to your page users. This tool allows you to do it.

Current version only allows to raffle based on the likes provided by users to a concrete post of the page. The software uses the access_token of the page (you have to get it from http://developers.facebook.com, Tools & Support -> Graph API explorer. In "Get Token", you select your page and get the token. This token is only valid for a small amount of time.

The software retrieves the most N recent posts (you specifiy N value) and you can select from these posts which one is the one used to get the user likes.

After selecting the post, you can establish the "magic number" parameter. This parameter (let me called it from now on MN) should be retrieved in real time from a random webpage such as random.org and it is used to generate "MN" pre-values.

  1. The parameter is randomly choosed by random.org
  2. The parameter establish the number of pre-values which will be created before get the winner.

For example, if MN = 4, the program will generate 4 users before select a winner. The fifth user will be the real winner.

It is important to remark that the users that are selected before (these 4 users) are still in the "rotating drum" which contains the names of the users. It don't discard them.

As said, the MN parameter is randomly choose, and the use of this parameter guarantee (in some way) that there is no hard-coded a given user to be the winner.

In any case, author recommend to execute a couple of tests and show the behaviour before doing the real contest.

v0.1: First version

sorteosfb's People

Contributors

alejandrorg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.