265*_*265 3 share facebook facebook-sharer
通过facebook的sharer.php共享网站资料有困难
使用标准代码打开窗口:
url = "http://www.facebook.com/sharer.php?s=100&p[title]=" + encodeURIComponent(title) + "&p[summary]=" + encodeURIComponent(description) + "&p[url]=" + encodeURIComponent(url) + "&p[images][0]=" + encodeURIComponent(image) + "&nocache=" + randomString(8);
window.open(url, '', 'toolbar=0,status=0,width=626,height=436');
Run Code Online (Sandbox Code Playgroud)
其中p [images] [0]具有正确的图像URL.
完整的URL示例:CLICKCLAC
正如您在Firebug中看到的那样,DOM树中有正确的图像,但它有"hidden_elem"类挂起.朋友,有什么想法让它成功吗?
或者如何在iframe窗口中启动我的js:D
小智 9
这可能会有所帮助:https: //developers.facebook.com/docs/reference/dialogs/feed/
你需要一个应用程序ID才能工作,我听说sharer.php已被弃用,这是现在的方法.
应用程序将为您提供两个参数:APP_ID和REDIRECT_URI将针对它进行验证.
归档时间: |
|
查看次数: |
13638 次 |
最近记录: |