迁移Facebook将Dialog参数发送到openGraph更改 [英] migrating facebook send Dialog parameters to openGraph changes

查看:100
本文介绍了迁移Facebook将Dialog参数发送到openGraph更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下内容:

FB.ui({
  method: 'send',
  to: connectionid,
  name: subject,
  picture: staticurl + 'images/logoformysite.png',
  link: homeurl + '/' + username + '/something=' + var1 +'&somethingelse=' + encodeURI(var2) + '&evenmore=' + encodeURI(var3),
  description: invitemessage,
});

Facebook正在通​​知我:
发送对话框将使用打开图形元标记并忽略'name','description'和'picture'参数。

Facebook is informing me this: Send Dialog will use Open Graph meta tags and ignore 'name', 'description', and 'picture' parameters.

如果按钮在我的多次显示页面有不同的参数,我应该如何在页面顶部设置一个 og.url og.description 属性?

If the button is showing multiple times on my page with different parameters, how should I set the og.url and og.description properties once on top of the page?

推荐答案

og:url 是当前页面的URL,不是目标。这不是一个问题,这样的事情。

og:url is the URL of your current page, not the target. That's not a problem for such things.

看一些新闻网站与 Facebook对象调试器了解如何实现。

Look at some news website with the Facebook object debugger to understand how it is implemented.

这篇关于迁移Facebook将Dialog参数发送到openGraph更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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