Has Facebook sharer.php changed to no longer accept detailed parameters?

前端 未结 5 773
醉话见心
醉话见心 2020-11-27 09:59

We have been opening a sharing popup (via window.open) with the URL like

https://www.facebook.com/sharer/sharer.php?s=100&p[title]=EXAMPLE&p[summary]         


        
5条回答
  •  有刺的猬
    2020-11-27 10:57

    I review your url in use:

    https://www.facebook.com/sharer/sharer.php?s=100&p[title]=EXAMPLE&p[summary]=EXAMPLE&p[url]=EXAMPLE&p[images][0]=EXAMPLE
    

    and see this differences:

    1. The sharer URL not is same.
    2. The strings are in different order. ( Do not know if this affects ).

    I use this URL string:

    http://www.facebook.com/sharer.php?s=100&p[url]=http://www.example.com/&p[images][0]=/images/image.jpg&p[title]=Title&p[summary]=Summary
    

    In the "title" and "summary" section, I use the php function urlencode(); like this:

    title); ?>
    

    And working fine for me.

提交回复
热议问题