Javascript Facebook与图像共享和自定义文本
我正在使用facebook sdkJavascript Facebook与图像共享和自定义文本,javascript,facebook,Javascript,Facebook,我正在使用facebook sdk <script src='http://connect.facebook.net/en_US/all.js'></script> 是否有发送文本和图像的选项 我也用过 FB.ui({ method: "send", link: 'http://test.com/', description: 'custom text hello this is my content', picture: 'hello.jpg' })
<script src='http://connect.facebook.net/en_US/all.js'></script>
是否有发送文本和图像的选项
我也用过
FB.ui({
method: "send",
link: 'http://test.com/',
description: 'custom text hello this is my content',
picture: 'hello.jpg'
});
但这不起作用,有FB.ui方法自动从链接中拾取文本和图像,但我需要发送自定义,如果有请帮助
<a title="send to Facebook"
href="http://www.facebook.com/sharer.php?s=100&p[title]=YOUR_TITLE&p[summary]=YOUR_SUMMARY&p[url]=YOUR_URL&p[images][0]=YOUR_IMAGE_TO_SHARE_OBJECT"
target="_blank">
<span>
<img width="14" height="14" src="'icons/fb.gif" alt="Facebook" /> Facebook
</span>
</a>
发送方法/对话框不接受“picture”参数
发送对话框仅允许添加链接,将使用该链接的打开图形数据。无法为链接使用自定义数据 发送对话框参数:
请记住,用户应该知道他们在链接后面可以期望什么,因此使用自定义数据而不是直接从链接中使用现有的开放图形数据是个坏主意。我只想发送个人消息共享者不接受url以外的任何其他参数。多年以来,这些额外参数不再可用。此外,他说的是发送,而不是共享。这是有区别的。不,API文档没有提到任何关于它的内容。
<a title="send to Facebook"
href="http://www.facebook.com/sharer.php?s=100&p[title]=YOUR_TITLE&p[summary]=YOUR_SUMMARY&p[url]=YOUR_URL&p[images][0]=YOUR_IMAGE_TO_SHARE_OBJECT"
target="_blank">
<span>
<img width="14" height="14" src="'icons/fb.gif" alt="Facebook" /> Facebook
</span>
</a>