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

前端 未结 4 531
离开以前
离开以前 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

    sharer.php has now been deprecated. https://developers.facebook.com/bugs/252983554810810/

    The new method is to use the share dialog: https://developers.facebook.com/docs/sharing/reference/share-dialog

    e.g.

    https://www.facebook.com/dialog/share?
      app_id=145634995501895
      &display=popup
      &href=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2F
      &redirect_uri=https://developers.facebook.com/tools/explorer
    

提交回复
热议问题