how to force like on page load ?

Yuvalg2

Registered Member
Joined
Jul 1, 2017
Messages
57
Reaction score
7
EDIT : forget to mention in the title : Facebook Likes
hey guys, so i'm trying with no success to force people into liking my Facebook page when entering my website.
i do not have a lot of traffic, Just trying to have fun with what i got.

But i cannot get inside the html of the facbook like button iframe : Blocked a frame with origin "MYORIGIN" from accessing a cross-origin frame. and that make sense.

*the website is a blogger blog

any ideas ? did you ever done something like this?
maybe sending an http Request to facebook com/plugins/like/connect?dpr=1 IDK
 
Sounds like you iframe the wrong page because that is x-frame-options deny, the error message you describe. What exactly is the url you iframe? Strip out your link and show me
 
Sounds like you iframe the wrong page because that is x-frame-options deny, the error message you describe. What exactly is the url you iframe? Strip out your link and show me

the iframe is from facebook : https:// developers. facebook.com/ docs/plugins/like-button
nothing else
 
You want jack click ? or want Fb likes on website load ? Is that even possible, i mean on load ?
 
You can't access iframe's contentWindow from another domain. That's impossible. It's there for a reason. You will have to take another approach.
 
You want jack click ? or want Fb likes on website load ? Is that even possible, i mean on load ?

I want that every visitor that got into my website will automatically like my facebook page if he is logged into facebook on his device (mobile/deskop)

You can't access iframe's contentWindow from another domain. That's impossible. It's there for a reason. You will have to take another approach.
Yeah i understand that now, i'm asking if someone have an idea to another approach
 
Yeah i understand that now, i'm asking if someone have an idea to another approach

Although I have never tried to make a like jacking script myself but I am pretty sure thatt you have to make the user click on the actual button instead of triggering the click within the iframe.
I am sure this particular script has been patched, but it might give you an idea..

Code:
https://github.com/Saturate/LikeJacker/blob/master/js/jquery.likejacker.js

can be an interesting project nevertheless ;)
I might try my hands on this in future :D
 
Yes, and that's the wrong page to iframe. That page doesn't support iframing.



There you go

No no no, i made the i frame template from the url, i did not iframe the link (
NVM,we are both talking about the same link

Although I have never tried to make a like jacking script myself but I am pretty sure thatt you have to make the user click on the actual button instead of triggering the click within the iframe.
I am sure this particular script has been patched, but it might give you an idea..

Code:
https://github.com/Saturate/LikeJacker/blob/master/js/jquery.likejacker.js

can be an interesting project nevertheless ;)
I might try my hands on this in future :D

Thats great, thtank you !
it gave me an idea and i'll try to do it right know
I'll update
 
Mhhh, very interesting...

i did worked on that today : (basiclly the button is following your mouse but it doesnt seem like anyone would click that)
Code:
https://metim-lerega-s2.blogspot.com/

for seeing it agian delete cookie :
HTML:
function delCookie(name){document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';}
delCookie('visitedHere');
 
Back
Top