Facebook"Feed"对话框“名称"链接不起作用 [英] Facebook 'Feed' dialog 'name' link not working

查看:87
本文介绍了Facebook"Feed"对话框“名称"链接不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的工作代码,可以在新窗口中成功显示Facebook"Feed"对话框:

Here is my working code that successfully displays the Facebook 'Feed' dialog in a new window:

      <a class="fbShareToWall" 
        onClick='window.open("https://www.facebook.com/dialog/feed?app_id=103528099783xxx" 
        + "&link=http://www.thesite.com"
        + "&name=Please%20respond%20to%20the%20link"
        + "&caption=Just%20work"
        + "&description=Comeon%20work"
        + "&redirect_uri=http://www.thesite.com");'">Share on Facebook</a>

这将在新窗口中成功显示提要"对话框.

This successfully displays the Feed dialog in a new window.

请注意上面代码中的'& name'参数-在Feed对话框中显示为:请回复链接.

Notice the '&name' parameter in the code above -- on the Feed dialog it displays as: Please respond to the link.

但是,如果单击它-它什么都不做,就好像它不是链接一样.但这实际上是一个链接.

BUT if you click on it -- it does nothing, as if it's not a link. But it is, in fact, a link.

"请回复链接"看起来像一个链接-字体为粗体,字母为蓝色,而其他参数-标题" 参数在Feed对话框中显示为"Just Work",而'description'参数则显示为"Comeon work"-它们既不是粗体字体也不是蓝色颜色.只是普通文本,这两个参数.

The 'Please respond to the link' looks like a link -- it is in a bold font and the letters are blue, while the other params -- the 'caption' param which displays on the Feed dialog as 'Just Work', and the 'description' param which displays as 'Comeon work' -- those are not in a bold font nor are they in blue color. Just regular text, those two params.

因此,在我的Feed对话框打开的情况下,我右键单击了请响应该链接,然后选择了在新窗口中打开链接",然后Firefox打开一个新的浏览器,并且网址栏包含您注意到, http://www.thesite.com 是我在上述代码中设置& link参数的方式.换句话说,Firefox可以轻松浏览与我的& name参数连接的URL.

So with my Feed dialog box open, I right-clicked on the Please respond to the link and selected 'Open link in a new window' and Firefox opens a new browser and the URL bar has the http://www.thesite.com which, as you notice, is how I set my &link parameter in the above code. In other words -- Firefox has no problem navigating with the URL connected to my &name parameter.

接下来,我检查并确保Firefox没有阻止弹出窗口.不是.

Next, I checked and made sure Firefox was not blocking popups. It wasn't.

我不理解为什么我的"请回复链接"订阅源对话框的& name 参数:

I don't undersand why my "Please respond to the link" feed dialog &name parameter:

  • 看起来像订阅源"对话框上的可点击链接

  • looks like a clickable link on the Feed Dialog box

,然后右键单击它,可以在新的浏览器中打开它-并成功导航到& link 参数

and upon being right-clicked, it can be opened in a new browser -- and navigates to the &link parameter successfully

,但是如果您单击馈送"对话框上的请回复链接,则不会执行任何操作.

and yet does NOT do anything if you click on Please respond to the link on the Feed dialog.

我在上面的Feed对话框代码中缺少某些内容吗?

Am I missing something in my Feed dialog code above?

该Feed对话框上的& name 参数的用途是什么?

What is the purpose of the &name parameter on that Feed dialog box?

或者具有& link & name 参数似乎是"Feed"对话框上的链接,但是单击后不起作用吗?

Or what's the point of having the &link and &name paramaters appear to be a link on the Feed dialog but then NOT work when clicked on?

推荐答案

使用javascript sdk进行发布时,存在这种保存行为,我认为这是facebook所预期的.

This save behavior exists when using the javascript sdk to publish, and I think that it's intended by facebook.

您在该对话框中看到的只是预览,即发布时的外观,作为预览,它可能不应该是真实的. 这可能是行为,以便用户可以通过单击预览中的项目来完成发布过程,而无需重定向到另一个页面(相同或不同的窗口/选项卡).

What you see in that dialog is only a preview of how it will look like when posted, and as a preview it's probably not supposed to act as the real thing. This is probably the behavior so that the user will finish the publishing process with out being redirect to another page (same or different window/tab) by clicking on the items in the preview.

这篇关于Facebook"Feed"对话框“名称"链接不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆