1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Code to Automatically Redirect User for Certain Actions?

Discussion in 'HTML & JavaScript' started by susenky13, Aug 26, 2011.

  1. susenky13

    susenky13 Newbie

    Joined:
    Aug 22, 2011
    Messages:
    36
    Likes Received:
    10
    Okay, I'm not sure how unique this idea is, but if someone could figure out some coding for this, that would make my day (and my money ;)).

    Basically, my idea is to create a webpage that offers cheat codes for games (not exactly, but what it actually offers is a secret for now :D). In order to gain access to the webpage with the codes, users must first complete 3 actions. The first one, is to like my website via a FB 'like' button. The second is to share it with all their friends, and the third is to complete an offer via a CPA Gateway. It is put in this order so that, even if users don't complete the offer, I end up exponentially increasing my odds of revenue anyways.

    The problem here is that there's no way to monitor if they've liked the page and shared it or not. So, instead, after clicking 'like', they'll automatically be redirected to the next step (on a seperate page) which is sharing it. And after they click share, they'll automatically be redirected to the gateway (which will include auto-redirect to the final page, so no problems there).

    In other words, I'm asking for a code that will automatically redirect to a different page upon clicking 'like' and 'share'.

    If I get one, this'll be a goldmine for me. If I don't get one...
    Let's no go there, I hope!
     
  2. shudogg

    shudogg Regular Member

    Joined:
    Sep 23, 2008
    Messages:
    412
    Likes Received:
    153
    Occupation:
    Internet Marketing
    Location:
    Indiana
    Home Page:
    They have already been done...

    There is a Facebook LIKE Locker script. I think its a plugin for wordpress. You could get it, and dig through its code to find out how it works and make your own for a static HTML/PHP website. or don't modify it, and make your site using wordpress and the plugin..

    Not sure about the "share" feature. I think there is a script like this as well, by the same people who made the Facebook LIKE Locker script. It forces them to share it on their profile as a status update.. It's actually a Facebook app that integrates with your script on your site... If it doesn't handle the ability to "know" when they really shared your page, it may be possible to set a cookie after the successfully shared it.. Then have your page/script looping to check for the cookie.. if it exists, they must have shared it, hence why they had the cookie..

    I do know that this whole setup has been done already.. Not sure the exact scripts required, but as I mentioned, the Facebook LIKE locker is a start.
     
  3. susenky13

    susenky13 Newbie

    Joined:
    Aug 22, 2011
    Messages:
    36
    Likes Received:
    10
    Hey, it's a start, right?
    Yeah, I used to use the Like locker script on my FB pages. It worked on FBML, but I'm not sure about HTML. As for the Share script, it should be similar, but implementing it into a regular website will be a bit more difficult.
     
  4. shudogg

    shudogg Regular Member

    Joined:
    Sep 23, 2008
    Messages:
    412
    Likes Received:
    153
    Occupation:
    Internet Marketing
    Location:
    Indiana
    Home Page:
    Can you load facebook into an iframe on your site?

    What was it, GodCPA that was a script/tool for creating invisible iframes for CPA offers? You know, where you used it to iframe an email submit or something.. and it was seamless on your site, but really it was only showing the email form from the CPA offer in an iframe on your site. This was a "trick" to get CPA email submits... Possibly create a facebook page on facebook's domain using the sharing and everything.. then on your website, setup the gateway lock (kinda like how sharecash pops up offers) only instead, have your facebook page iframed in there.. Unless facebook breaks outta frames, it could work.
     
  5. susenky13

    susenky13 Newbie

    Joined:
    Aug 22, 2011
    Messages:
    36
    Likes Received:
    10
    I like where you're going with this. Not exactly what I wanted at first, but I like the sound of it anyways. Wait, what's the CPA Network with the tool called? GodCPA?
    If I got that tool, I would be RICH! :pirate:
     
  6. whatshisname

    whatshisname Junior Member

    Joined:
    Jan 17, 2011
    Messages:
    144
    Likes Received:
    119
    mate, use the onclick feature and use the javascript sdk. pm if you want me to code it for a small fee :/ like super super small

    OR Ill tell you how u shud set it up

    Initilize the FB.int()

    Then use the like button tag
    add the response using the Fb.ui()

    Then onclick run the fb ui

    then response to redirect to site

    Then on the share page, you can run Fb.int()
    then use a feed dialog

    same fb.ui()

    with a response to your iframed cpa offer.

    On the iframed cpa offer you will need to use settimeout to check if iframe changed so you can redirect once offer is completed. :D
     
    Last edited: Aug 30, 2011
  7. xenon2010

    xenon2010 Regular Member

    Joined:
    Apr 27, 2010
    Messages:
    231
    Likes Received:
    48
    Occupation:
    web and desktop apps programmer
    Location:
    prison
    Home Page:
    so you are trying to code that your self? or you want us to do it for you?
    if you want someone to do it for you. you just go to Hire a freelance section and find a programmer. personally, I don't think its hard to accomplish this. but I don't think someone will do all of this for free... just my 2 cents :D