Facebook分享链接 - 您可以自定义消息正文吗? [英] Facebook share link - can you customize the message body text?
问题描述
我正在尝试创建一个在Facebook上分享一个页面的链接。到目前为止我已经有:
I'm trying to create a link that will share a page on Facebook. So far I've got:
href="http://www.facebook.com/sharer.php
?u=http%3A%2F%2Fwww.cnn.com%2F
&t=CNN%26s+website"
但是,我真的想添加一些文本,将会在你在想什么?文本框(特别是作为 t
值被链接的标题覆盖)。有人知道这是否可行?
However, I'd really like to add some text that will go in the 'What's on your mind?' text box (especially as the t
value gets overridden by the link's title). Does anyone know if this is possible?
推荐答案
你不能使用sharer.php ,但,您可以使用Dialog API做类似的操作。 http://developers.facebook.com/docs/reference/dialogs/
You can't do this using sharer.php, but you can do something similar using the Dialog API. http://developers.facebook.com/docs/reference/dialogs/
http://www.facebook.com/dialog/feed?
app_id=123050457758183&
link=http://developers.facebook.com/docs/reference/dialogs/&
picture=http://fbrell.com/f8.jpg&
name=Facebook%20Dialogs&
caption=Reference%20Documentation&
description=Dialogs%20provide%20a%20simple,%20consistent%20interface%20for%20applications%20to%20interact%20with%20users.&
message=Facebook%20Dialogs%20are%20so%20easy!&
redirect_uri=http://www.example.com/response
您必须创建一个虚拟的Facebook应用程序只需要一个 app_id
。请注意,您的Facebook应用程序根本不需要执行任何操作。只要确保它已正确配置,您应该全部设置。
The catch is you must create a dummy Facebook application just to have an app_id
. Note that your Facebook application doesn't have to do ANYTHING at all. Just be sure that it is properly configured, and you should be all set.
这篇关于Facebook分享链接 - 您可以自定义消息正文吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!