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

How do you redirect users after they leave a comment on your website

Discussion in 'FaceBook' started by jdem02, Jan 20, 2012.

  1. jdem02

    jdem02 Registered Member

    Joined:
    Jan 16, 2010
    Messages:
    56
    Likes Received:
    1
    Was wondering I have the facebook comments app for wordpress.. On my posts it has a facebook comment box.. After the user comments I want them to be redirected to a sales page within my site. Anyone know how to do that?
     
  2. fattachelli

    fattachelli Registered Member

    Joined:
    Jul 22, 2010
    Messages:
    69
    Likes Received:
    6
    do you know javascript?
     
  3. jdem02

    jdem02 Registered Member

    Joined:
    Jan 16, 2010
    Messages:
    56
    Likes Received:
    1
    not really.. really wish i knew how to do this
     
  4. tb303

    tb303 Power Member

    Joined:
    Dec 18, 2011
    Messages:
    601
    Likes Received:
    280
    Last edited: Jan 20, 2012
  5. phph5

    phph5 Regular Member

    Joined:
    Aug 7, 2010
    Messages:
    225
    Likes Received:
    42
    Listen for the comment.create event.

    Insert the following within fbAsyncInit: window.fbAsyncInit = function() { // HERE // }

    Code:
            FB.Event.subscribe('comment.create', function () {               
                top.location.href = 'http://your-redirect-page.com/';         
            });  
     
  6. Fuggz

    Fuggz Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 25, 2010
    Messages:
    583
    Likes Received:
    600