How to make a Facebook “Like” button that is just a link, not an iFrame?

后端 未结 4 1279
独厮守ぢ
独厮守ぢ 2021-01-07 17:48

I would like to put a \"Like\" button into an email message that it going out to our e-newsletter subscribers. The usual way of embedding a Like button, which uses, an ifram

4条回答
  •  独厮守ぢ
    2021-01-07 18:14

    In addition to another answers that says it's impossible, I'll show a brief explanation why it should not be supported by the Facebook(or any other sites that requires login).

    Let's suppose someone had a post, and Facebook gave the href that automatically likes the post to the owner. (let's just say fb.com/like/post_id for simplicity's sake)

    What happens if he rolls out email newsletters that includes some tag like this?

    
    

    It's not definitely a img src, but web browsers will try to connect to fb.com/like/post_id anyway, and...boom. By reading this email you automatically liked that post regardless of your intention.

    This is why it shouldn't be possible to roll out email that includes Like link.

提交回复
热议问题