facebook 之类的让我抓狂

发布于 2024-11-02 07:06:29 字数 2370 浏览 1 评论 0原文

无论我做什么,我的 prestashop facebook like 按钮总是给我红色错误。

如果我这样做,我的 facebook 之类就会成功设置

<iframe src=“http://www.facebook.com/plugins/like.php?href=http://URL.com&layout=standard&show_faces=false&width=450&action=like&font=verdana&colorscheme=light&height=35” scrolling=“no” frameborder=“0” style=“border:none; overflow:hidden; width:450px; height:35px;” allowTransparency=“true”></iframe>

但是,上面的内容会出现以下问题:

1)每当单击 LIKE 时,它都会将静态网址作为 URL.com 发布到我的 facebook 上。如何根据当前查看的产品页面使 url 动态化?

2)每当我点击LIKE时,我的Facebook墙就会删除我之前喜欢的产品,并将最新的产品添加到顶部。

3) 如何获得我点击“LIKE”发布到 Facebook 的确切图片?


为了解决问题(1)的动态URL,我然后尝试从 这里。但是,单击按钮后它会向我发布错误。

<iframe src="http://www.facebook.com/plugins/like.php?href={php} echo 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; {/php}&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:35px; margin-top:10px; margin-bottom: 0px"></iframe>

我对此功能的成功网站进行了一些研究,例如 this 。当我查看页面源代码时,如下所示:

我完全有与我与我的 url 页面源进行比较时的情况相同。

至于问题(3),如果它不能让我得到确切的图片,我更喜欢类似 允许用户选择要选择的图片。 ** 点击 Facebook 分享进行测试。

我什至尝试从 这里但仍然遇到同样的问题。
仅供参考,我正在使用 prestashop 1.3.7。为了让这个 facebook like 按钮正常工作,我卸载了 chrononical URL,关闭了友好 URL 功能。 wewwww...

请有人帮忙

my prestashop facebook like button keep giving me ERROR in red no matter what i do.

I have my facebook like set up successfully if i do this

<iframe src=“http://www.facebook.com/plugins/like.php?href=http://URL.com&layout=standard&show_faces=false&width=450&action=like&font=verdana&colorscheme=light&height=35” scrolling=“no” frameborder=“0” style=“border:none; overflow:hidden; width:450px; height:35px;” allowTransparency=“true”></iframe>

However, this above post this problems:

1) It post a static url as URL.com to my facebook whenver the LIKE is clicked. How do i make the url to be dynamic according to the product page currently viewed?

2) Whenever i click LIKE, my facebook wall will delete the previous product which i like and add the latest one to the top.

3) How do i get the exact picture which i click LIKE posted to facebook?


To solved the dynamic URL for question (1), i then try this from here. However it then post me error after the button is clicked.

<iframe src="http://www.facebook.com/plugins/like.php?href={php} echo 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; {/php}&layout=standard&show_faces=false&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:35px; margin-top:10px; margin-bottom: 0px"></iframe>

I have done some research on the successful website for this feature such as this. When i view the page source it has this as below:

<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.prodaja-nakita.rs/product.php?id_product=129&
layout=standard&show_faces=false&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0"
allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:35px; margin-top:10px; margin-bottom: 0px"></iframe>

I have exactly the same as it when i do a compare with my url page source.

As for the question (3), if it cannot get me the exact picture, i would prefer something like This where it allow user to select which picture to choose. ** CLick on the facebook share to test it out.

I have even tried install V1.1.1 facebook like button from here but still having same problem.
FYI, i am using prestashop 1.3.7. In order to get this facebook like button to work, i have uninstalled the chrononical Url, turned off the friendly URL feature. whewwww....

Somebody please help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼泪都笑了 2024-11-09 07:06:32

我发现这是因为您在页面离线时输入的IP地址所致。
删除 ip 并启用商店和类似按钮效果很好

i found out that it is because of the Ip address you key in when your page is offline.
Remove the ip and enable the shop and the like button works great

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文