Addthis: Changing Description, Title, and Url being sent

后端 未结 3 1544
抹茶落季
抹茶落季 2021-01-12 13:49

I am building a forum in PHP and I want users to be able to share the title and description of each post to facebook, twitter, ...etc using the Addthis social plugin. Here i

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-12 14:13

    AddThis specific recommend that you use meta tags from the Open Graph Protocol to specify what to show

    We strongly recommend the page-tagging approach over passing your widget parameters to our APIs

    So in your case you should have the code lie it's original:

    
    

    and change your header to include the addThis meta tags, in your example, like:

    
    
    
    
    

    This avoids any problem you can encounter in the Client API.

提交回复
热议问题