Open Graph - 在发布的操作中获取和规范 URL
我们目前正在测试桌面应用程序的 Facebook 功能。我们定义了一个 Facebook 应用程序,然后创建了开放图操作、对象和聚合。
第一个问题:如果获取的(对象 URL)和规范(og:url)URL 不同,为什么标签取自规范 URL,而不是取自获取的 URL?首先拥有获取的 URL 和规范的 URL 有什么用?
第二个问题:当发布一个操作并且用户点击 Facebook 聚合框中的相应链接时,我们看到其他参数与我们的 og:url 组合在查询字符串中(例如 ?fb_action_ids=##&fb_action_types =...&fb_source=recent_activity )。有没有办法保留我们的 og:url 并且不以这种方式扩展?
We are currently testing the Facebook functionality of our desktop application. We defined a Facebook app, then created open graph actions, objects and aggregations.
First question: in case the fetched (the object URL) and canonical (og:url) URLs differ, why the tags are taken from the canonical URL and not from the fetched URL? What's the use in having a fetched and a canonical URL in the first place?
Second question: when an action is posted and the user follows the corresponding link in a Facebook aggregation box, we see that additional parameters are combined in a query string with our og:url (e.g. ?fb_action_ids=##&fb_action_types=...&fb_source=recent_activity ). Is there a way to have our og:url preserved and not extended in such a way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于第二个问题,设置一个剥离查询字符串的对象页面应该足够简单。您可以简单地使用元刷新将用户重定向到您喜欢的任何位置,或者您可以使用 javascript:
For the second question, it should be simple enough to set up an object page that strips the query string. You can simply use a meta refresh to redirect the user wherever you like, or you could use javascript: