Can't use facebook sharer.php custom parameters in mobile sites

前端 未结 4 528
离开以前
离开以前 2021-01-31 20:32

I own a jQuery mobile website. There i using facebook share option with custom parameters to add title, description, image with link

Like below, https://www.facebook.com

4条回答
  •  臣服心动
    2021-01-31 20:59

    You can prevent Facebook from going to the mobile site by adding a ?m2w parameter to the URL. Then, sharer.php works like usual.

    e.g.

     https://www.facebook.com/sharer/sharer.php?m2w&s=100.... (etc)
    

    Looks kind of bad though, looking for a better answer.

    Edit: Sharer.php has been deprecated, see Felix' answer below.

提交回复
热议问题