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

how to force like on page load ?

Discussion in 'FaceBook' started by Yuvalg2, Jul 7, 2017.

  1. Yuvalg2

    Yuvalg2 Registered Member

    Joined:
    Jul 1, 2017
    Messages:
    52
    Likes Received:
    5
    Gender:
    Male
    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
     
  2. DaPromo

    DaPromo Junior Member

    Joined:
    Jan 10, 2017
    Messages:
    167
    Likes Received:
    60
    Occupation:
    подковать блоху
    Location:
    Мать Земля
    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
     
  3. Yuvalg2

    Yuvalg2 Registered Member

    Joined:
    Jul 1, 2017
    Messages:
    52
    Likes Received:
    5
    Gender:
    Male
    the iframe is from facebook : https:// developers. facebook.com/ docs/plugins/like-button
    nothing else
     
  4. Nut-Nights

    Nut-Nights Jr. VIP Jr. VIP

    Joined:
    Jun 20, 2013
    Messages:
    5,042
    Likes Received:
    3,213
    Location:
    Hell
    Home Page:
    You want jack click ? or want Fb likes on website load ? Is that even possible, i mean on load ?
     
  5. Gogol

    Gogol Jr. VIP Jr. VIP

    Joined:
    Sep 10, 2010
    Messages:
    3,411
    Likes Received:
    3,057
    Gender:
    Male
    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.
     
  6. Yuvalg2

    Yuvalg2 Registered Member

    Joined:
    Jul 1, 2017
    Messages:
    52
    Likes Received:
    5
    Gender:
    Male
    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)

    Yeah i understand that now, i'm asking if someone have an idea to another approach
     
  7. Gogol

    Gogol Jr. VIP Jr. VIP

    Joined:
    Sep 10, 2010
    Messages:
    3,411
    Likes Received:
    3,057
    Gender:
    Male
    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
     
  8. DaPromo

    DaPromo Junior Member

    Joined:
    Jan 10, 2017
    Messages:
    167
    Likes Received:
    60
    Occupation:
    подковать блоху
    Location:
    Мать Земля
  9. Yuvalg2

    Yuvalg2 Registered Member

    Joined:
    Jul 1, 2017
    Messages:
    52
    Likes Received:
    5
    Gender:
    Male
    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

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

    sandandkush Power Member

    Joined:
    May 29, 2015
    Messages:
    569
    Likes Received:
    130
    Occupation:
    Creative Director
    Location:
    The Islands
    Mhhh, very interesting...
     
  11. Yuvalg2

    Yuvalg2 Registered Member

    Joined:
    Jul 1, 2017
    Messages:
    52
    Likes Received:
    5
    Gender:
    Male
    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');