Like before wathcing video

erzael

Registered Member
Joined
Oct 20, 2008
Messages
76
Reaction score
34
Hello out there!

I just discovered a site, that requires you to like the site, and share it on your wall, before you could watch the different videos on the site.

How is that made? What is the script behind that? I have searched the web for days now, and i can't find an answer. So i thought that you could help, here at BHW!



Thank you,
Have a good night!
 
the fanpage of lmfao is doing this. but i would use it a bit other.. like the page to see the videos and share to be able to watch them
 
Can you show us the site so we can take a look at what you're talking about?
 
I'm sorry Sir, I'm not allowed to post URL's in this forum. I don't know how i can provide you the site then.
 
This is simple F.B. connect API available for any site. There's probably a simple script on the index page of the site which identifies you as a F.B. user and checks if you 'liked' the site or not. Then it shows the teasing page or content page depending on this. You can find lots of examples of such scripts if you try google :)
 
it is simple script if you search watch deadly hollows online and you can see this site saw that last night only
 
It's pretty easy with or without page.
Without FB Page :
you need to create a Facebook application, and to track user like you have to use this Facebook JS Function :
Code:
hxxp://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/

In Facebook page tab :
Facebook send via POST a signed request to your server, when you decode it, you can find many parameter such :
- if the current user is admin of the page.
- if the current user liked the page.

;)
 
i actually saw something on here yesterday like that. it was for wordpress, and it locks the page until the user 'likes' it. i can't remember what it was called though.... but do a search!
 
It's pretty easy with or without page.
Without FB Page :
you need to create a Facebook application, and to track user like you have to use this Facebook JS Function :
Code:
hxxp://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/

In Facebook page tab :
Facebook send via POST a signed request to your server, when you decode it, you can find many parameter such :
- if the current user is admin of the page.
- if the current user liked the page.

;)

I coded one of these but I was using cookies to detect the like because I couldn't find a better way. Thanks for the info.
 
I coded one of these but I was using cookies to detect the like because I couldn't find a better way. Thanks for the info.

for Facebook page, I used in tab the variable posted by Facebook, and in Applications or web sites I used DB ;)
You are welcome
 
Yes , some fan pages are using this , but i dont know what cretain scripts they are using.
 
I have a TON of these scripts if anyone is interested. Also if you have traffic hit me up, I am willing to JV.
 
Didni't some share similar script somewhere here? :)
 
I did but it got moved to Jr. VIP

I have a dozen different scripts like this that are working well on FB right now, PM me and I will show you what I have.
 
Back
Top