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

[HOW TO?] Fan page redirect to website!

Discussion in 'FaceBook' started by Nightime14, Jul 1, 2011.

  1. Nightime14

    Nightime14 Junior Member

    Joined:
    Nov 29, 2009
    Messages:
    170
    Likes Received:
    50
    how do you redirect a fan page to a website? like right when a user goes to the fan page it redirects instantly to a website thats NOT iframed in the page ..i tried html redirect..didnt work added blank target..didnt work , also tried java script redirect didnt work ..any suggestions?
     
    • Thanks Thanks x 1
  2. frankweerasinghe

    frankweerasinghe Regular Member

    Joined:
    Jun 6, 2011
    Messages:
    434
    Likes Received:
    393
    Location:
    Colombo, Sri Lanka
    how about adding a javascript popup for your i frame canvas page?
     
  3. Grizzy

    Grizzy Senior Member

    Joined:
    Nov 11, 2008
    Messages:
    919
    Likes Received:
    999
    maybe
    Code:
    top.location.href = 'http://yourwebsite.com';
    inside an i-frame tab?
     
    • Thanks Thanks x 1
  4. RootShellvb

    RootShellvb Junior Member

    Joined:
    Jan 29, 2009
    Messages:
    188
    Likes Received:
    211
    Occupation:
    CEO
    Location:
    Casablanca, Morocco
    Home Page:
    It's possible and I used it once to get some permissions from the user :)

    +1
    it's working from the iframe ;)

    Just don't use it to refresh the whole page, ex :
    Code:
    top.location.href = top.location.href;
     
  5. moneyrocks

    moneyrocks Supreme Member

    Joined:
    May 22, 2009
    Messages:
    1,205
    Likes Received:
    135
    i tried the code and i am not bale to have that to work what am i doing wrong does it work with some browsers only or with all of them

     
  6. SahL

    SahL Elite Member

    Joined:
    Jan 8, 2011
    Messages:
    1,594
    Likes Received:
    1,296
    Occupation:
    ★SEO expert and ★Sexpert
    Location:
    Bombay
    Home Page:
    I guess the OP wants to make the Most out of Youlikehits New Manual Facebook Like system.

    Cool idea OP :biggthump
     
  7. Grizzy

    Grizzy Senior Member

    Joined:
    Nov 11, 2008
    Messages:
    919
    Likes Received:
    999
    You doing it like this money?
    Code:
    <script type="text/javascript">
    top.location.href = 'http://yourwebsite.com';
    </script>
    Preferably that should be placed somewhere in between your <head></head> tags on the iframed page.
     
    • Thanks Thanks x 1
  8. ankee0939

    ankee0939 Junior Member

    Joined:
    Mar 22, 2011
    Messages:
    143
    Likes Received:
    98
    Location:
    California
    i tried putting that in my header tags but it just keeps refreshing the site when i go to it.
     
  9. Zautner

    Zautner Newbie

    Joined:
    Dec 22, 2010
    Messages:
    15
    Likes Received:
    9
    Occupation:
    Social Media Avertising in I-Share
    Location:
    Haifa, Israel.
    Home Page:
    money, try this:


    <script>
    if (parent.frames.length > 0)
    {
    parent.location.href = location.href;
    }
    </script>