doudou201701 2014-02-19 20:45
浏览 55

我正在尝试将facebook推荐按钮添加到产品页面

I've already gone to the facebook developers page about this, and almost everything works when I use the resource they give me, which only requires that I provide the URL to be liked before generating the code. The problem is that it takes the website's image instead of the product's image, and I was wondering if someone knew how to edit or add to the code Facebook Dvelopers gave me so that I can choose the image that will appear on everyone's facebook walls when they choose to share. Here's the inframe code:

<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.4-hmall.org%2FProduct%2Fclubsupplies-bags-totes%2FBAG2.aspx&amp;width&amp;layout=standard&amp;action=recommend&amp;show_faces=true&amp;share=true&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:80px;" allowTransparency="true"></iframe>
  • 写回答

2条回答 默认 最新

  • douchang6770 2014-02-19 20:48
    关注

    Not 100% sure this is what you are looking for but it sounds like it might be.

    Try using the FB Image Meta Tag on your page

     <meta property="og:image" content="img/facebook.png"/>
    

    here is a good article about all the FB meta tag stuff

    http://davidwalsh.name/facebook-meta-tags

    评论

报告相同问题?

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测