我試圖在 Magento 2 中運(yùn)行開放圖共享。當(dāng)共享 url 看起來(lái)像這樣:https://www.facebook.com/v6.0/dialog/share_open_graph?action_properties=%7B%22object%22%3A%7B%22og%3Aurl%22%3A%22http%3A%2F%2FXXXX.XXXX.XX%3A8005%2Fde%2Fmini-taschenschirm-filigrain.html%22%2C%22og%3Atitle%22%3A%22Test%20Titel%22%2C%22og%3Adescription%22%3A%22test%20description%22%2C%22og%3Aimage%3Aurl%22%3A%22http%3A%2F%2FXXX.XXXXX.XX%3A8005%2Fpub%2Fmedia%2Fcatalog%2Fproduct%2Fcache%2Faec5383cda2d6e7ccc1547d0d0cdcbe8%2Fs%2Fc%2Fschirm_black_1.jpg%3E%22%7D%7D&action_type=og.shares&app_id=1355337027998409&channel_url=https%3A%2F%2Fstaticxx.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D46%23cb%3Df2d86ce06c7e8a4%26domain%3Dmage.intermall.de%26origin%3Dhttp%253A%252F%252FXXX.XXXX.XX%253A8005%252Ff37eea29d1c7654%26relation%3Dopener&display=popup&e2e=%7B%7D&fallback_redirect_uri=http%3A%2F%2FXXX.XXXX.XX%3A8005%2Fde%2Fmini-taschenschirm-filigrain.html%23&locale=en_US&next=https%3A%2F%2Fstaticxx.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D46%23cb%3Df3e4e25677030d%26domain%3Dmage.intermall.de%26origin%3Dhttp%253A%252F%252FXXX.XXXX.XX%253A8005%252Ff37eea29d1c7654%26relation%3Dopener%26frame%3Df10ab084fc6bbf%26result%3D%2522xxRESULTTOKENxx%2522&sdk=joey&version=v6.0有趣的是,當(dāng)共享鏈接是正確的,但它不顯示圖像、標(biāo)題或描述。我有點(diǎn)不想在頁(yè)面中設(shè)置 oh 標(biāo)簽,因?yàn)樗?magento 并且我不想覆蓋現(xiàn)有的模板。我對(duì) magento 有點(diǎn)陌生,并且想要/需要編寫一個(gè)模塊,該模塊可以在產(chǎn)品詳細(xì)信息頁(yè)面中實(shí)現(xiàn)社交媒體共享。我的目標(biāo)是通過 twitter 和 facebook 做到這一點(diǎn)。我開始為 facebook 這樣做,但它有點(diǎn)太復(fù)雜了。我想要的只是分享帶有自定義文本、標(biāo)題和產(chǎn)品圖片(可能是 hastags)的產(chǎn)品有人可以讓我走上正確的道路嗎?
Facebook-Share with open graph custom Title, Image
qq_花開花謝_0
2022-05-26 16:22:16