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

Question to a JS coder in regards to FB sharing/viral scripts

Discussion in 'FaceBook' started by blackhaze, Jan 18, 2012.

  1. blackhaze

    blackhaze Power Member

    Joined:
    Jan 11, 2008
    Messages:
    661
    Likes Received:
    167
    Occupation:
    self made millionaire
    Location:
    in the matrix
    Home Page:
    I have seen that some viral scripts use different ways to open a window/share on facebook when people click on a button.

    (CODE REMOVED)

    I am using a script right now which uses a method with the /dialog/feed etc. (which is taken from the facebook viral bomb script) just would like to have an opinion by experienced people what they use and what to look for.

    For example, could i simply replace my top.location.href routine with window.open and open in a popup instead with the first method..or would it break something?

    Or in SHORT:

    I am using the facebook viral bomb script right now and i am wondering whether it can be improved with better code.

    bh
     
    Last edited: Jan 18, 2012
  2. blackhaze

    blackhaze Power Member

    Joined:
    Jan 11, 2008
    Messages:
    661
    Likes Received:
    167
    Occupation:
    self made millionaire
    Location:
    in the matrix
    Home Page:
    I had to remove some code since i don't want viral code to be known too much :)

    To clarify...for example there are ways to code using apps...and there are ways without a need for apps....why would one method better or safer than the other? Thanks :)
     
  3. μελαγχολία

    μελαγχολία Junior Member

    Joined:
    Jul 16, 2010
    Messages:
    198
    Likes Received:
    25
    Location:
    Somewhere over the rainbow
    Home Page:
    You're question is a bit too vague to answer completely. THe /dialog/feed way is the "standard" way to share things nowadays. You could use apps to request extended permissions and share things without the user knowing but this won't last long, this used to be ok quite some time ago.

    Other than that I don't really understand what you're asking :)

    PS: Also, pratically any method right now requires at least an app ID from Facebook, what are you referring to that "doesn't require an app"? If you're talking about the old share button I would use that, mainly because you can't detect if they effectively shared like you do with the /dialog/feed method.
     
    Last edited: Jan 18, 2012
  4. blackhaze

    blackhaze Power Member

    Joined:
    Jan 11, 2008
    Messages:
    661
    Likes Received:
    167
    Occupation:
    self made millionaire
    Location:
    in the matrix
    Home Page:
    There seem to be some scripts which seem do NOT require an app where they use the sharer.php URL like hxxps://www.facebook DOT com/sharer/sharer.php and i was just wondering what the effective difference is to the method eg. from "facebook viral bomb"
     
  5. μελαγχολία

    μελαγχολία Junior Member

    Joined:
    Jul 16, 2010
    Messages:
    198
    Likes Received:
    25
    Location:
    Somewhere over the rainbow
    Home Page:
    Yeah, what I was referring to in this quote was the sharer.php script. Anyway, as far as I know, you can't detect if people effectively shared your page using this kind of script and that's the main difference and why I prefer /dialog/feed (you can always rotate app ids if needed)
     
  6. blackhaze

    blackhaze Power Member

    Joined:
    Jan 11, 2008
    Messages:
    661
    Likes Received:
    167
    Occupation:
    self made millionaire
    Location:
    in the matrix
    Home Page:
    I noticed when i use the dialog/feed method, it always shares on the wall.
    But when i use the other method i can also choose where to share it, on my wall or on my page.