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

Facebook app redirecting code help!?

Discussion in 'FaceBook' started by ankee0939, Jun 18, 2011.

  1. ankee0939

    ankee0939 Junior Member

    Joined:
    Mar 22, 2011
    Messages:
    143
    Likes Received:
    98
    Location:
    California
    I'm trying to find a line of code I can put in my site that generates something like "?412312" at the end of a link im posting on facebook. Basically something that makes it look like each click is unique so facebook doesn't mess with the domain (confirm like box). Much appreciated thanks!
     
  2. indianbill007

    indianbill007 Jr. VIP Jr. VIP

    Joined:
    Jan 8, 2010
    Messages:
    4,813
    Likes Received:
    4,051
    Occupation:
    Making Money when the world is sleeping
    Location:
    Menlo Park - Next to Zuck
    Code:
    $bigseed = rand(1111111111,9999999999);
    $smallseed= rand(111,999);
    <fb:comments href="http://domain.info/?<?php echo $bigseed;?>&haha=<?php echo $smallseed; ?>" notify="true" num_posts="2" width="485" 
    ></fb:comments>
    
    Use this for comment box.
     
    • Thanks Thanks x 1
  3. ShinGouki

    ShinGouki Newbie

    Joined:
    Jun 22, 2010
    Messages:
    24
    Likes Received:
    2
    Hmmm, i always used

    <?php $random_number1 = rand(1, 999999); ?> or
    <?php $random_number = rand(1, 999999999999); ?>

    Can that be used at the end of facebook apps?

    example:

    apps.facebook.com/blahblah/?23141