Automatic voting from an URL link - is it possible?

Discussion in 'FaceBook' started by ChrisV, Feb 5, 2013.

  1. ChrisV

    ChrisV Newbie

    Jun 17, 2011
    Likes Received:
    Property Portfolio Manager for a Investor Group
    Vanderbijlpark, South Africa

    I have a problem where a site has a voting button to vote for a specific graphic design.

    To get others to vote I must send them a site link like this:
    and on this page there is a voting button that need to be pressed.
    That is where the problem comes in that even if they open the page they might not press the voting button.
    The id=2314 s the specific graphic I want to vote for.

    Is it possible for me to send then a link where if they click on the link the voting will automatically happen when they open the link I send them?

    I had a look at the code from the voting site (Note: I'm not a programmer at all):D
    and copied it below:

    <div style="margin-left: -100px; float: left; width: 230px; font-family: Arial; font-size: 22px; color: #fff; text-transform:uppercase; font-weight: 400; margin-top: 240px;">
    Name Surname<div style="height: 30px;"></div>
    <div class="vot_plus" id="vt_2314"><h4>1</h4><span><img src="" alt="1" title="Vote" onclick="addVote(this, 1)"></span></div>

    <div class="fb-send fb_edge_widget_with_comment fb_iframe_widget" data-href="" style="margin-left: 110px;" fb-xfbml-state="rendered"><span style="height: 20px; width: 50px;"><iframe id="f2b67d2bc4" name="f3713be434" scrolling="no" style="border: none; overflow: hidden; height: 20px; width: 50px;" class="fb_ltr" src=""></iframe></span></div>


    What I can see is on line 3 of the code is the "onclick="addVote(this, 1)" code
    Is it possible to send them a link that could somehow include this to automatically vote?
    is there another way to get it to work?

    Your suggestions and help would be highly appreciated.
  2. chevet

    chevet Junior Member

    Jun 23, 2010
    Likes Received:
    addVote function could make call to .php script using AJAX. PM url.