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

blackhaze

Power Member
Joined
Jan 11, 2008
Messages
661
Reaction score
168
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:
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 :)
 
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:
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.

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)
 
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.
 
Back
Top