如何使用带标记的Google地方信息(或地图)发布操作?(How to publish an action with tagged Google Places (or Maps)?)

编程入门 行业动态 更新时间:2024-10-25 19:28:17
如何使用带标记的Google地方信息(或地图)发布操作?(How to publish an action with tagged Google Places (or Maps)?)

我在使用已标记的Google商家信息而不是Facebook商家信息发布操作(使用OpenGraph)时出现问题。 根据以下文档,它应该是直截了当的: https : //developers.facebook.com/docs/opengraph/location_tagging/#third_party

但每次我尝试使用place = http:// GOOGLE_PLACE_URL发布操作时,都会收到以下错误消息:

您尝试发布的操作无效,因为指定的地点“http:// GOOGLE_PLACE_URL”无效。

我试图将谷歌地图,Google地方信息和Google+本地网址放在一起,但所有问题都存在同样问题。

注意:当我设置“place = Facebook_Place_ID”时,我可以成功发布操作。

非常感谢任何帮助或提示!

谢谢,

I'm having problem publishing actions (using OpenGraph) with tagged Google Places instead of Facebook Place. It should be straight forward according to the following document: https://developers.facebook.com/docs/opengraph/location_tagging/#third_party

But every time I try to publish an action with place=http://GOOGLE_PLACE_URL I get the following error message:

The action you're trying to publish is invalid because the specified place 'http://GOOGLE_PLACE_URL' is invalid.

I've tried to put Google Maps, Google Places and Google+ Local URLs but all with the same problem.

Note: I could successfully publish actions when I set "place=Facebook_Place_ID".

Any help or hint is greatly appreciated!

Thank you,

最满意答案

我不认为Google的地方页面有支持Open Graph所需的标记

从文档:

使用第三方场所发布操作与上面的位置标记示例类似,不同之处在于您将URL传递到另一个站点的place对象。

文档中的foursquare示例被定义为一个地方,以及foursquare使用的元数据: https : //foursquare.com/v/eataly/4c5ef7​​7bfff99c74eda954d3

有关该URL的Facebook调试工具 ,请访问https://developers.facebook.com/tools/debug/og/object?q=https%3A%2F%2Ffoursquare.com%2Fv%2Feataly%2F4c5ef7​​7bfff99c74eda954d3 - 它清楚地显示了foursquare的位置被定义为‎og:type‎ playfoursquare:venue并且有可用于Facebook的位置数据 - 我怀疑谷歌在他们的地方页面上没有这个

I don't think Google's place pages have the markup necessary to support Open Graph

From the documentation:

Publishing actions with 3rd party places is similar to the location tagging example above, except that you will pass in the url to another site's place object.

The foursquare example in the documentation is defined as a place, as well as having the metadata foursquare uses: https://foursquare.com/v/eataly/4c5ef77bfff99c74eda954d3

See Facebook's Debug Tool for that URL at https://developers.facebook.com/tools/debug/og/object?q=https%3A%2F%2Ffoursquare.com%2Fv%2Feataly%2F4c5ef77bfff99c74eda954d3 - it clearly shows that foursquare's place is defined as ‎og:type‎ playfoursquare:venue and has location data available for Facebook - i suspect Google does not have this on their place pages

更多推荐

本文发布于:2023-08-07 18:45:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1465520.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   标记   操作   地图   地方

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!