使用Facebook打开图表聚合进行签入 [英] Using Facebook Open Graph map aggregation for checkins

查看:221
本文介绍了使用Facebook打开图表聚合进行签入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,这是我试图解决的问题:

first of all this is the feature I'm trying to work out:

https://developers.facebook.com/docs/opengraph/define-units/

(在布局样式标题下)

(under the Layout Style heading)

所以我有一个跨平台的应用程序,有一个功能允许人们通过它登录到Facebook Places位置。现在,实际的位置发布工作很棒,但我希望比现在更多地了解人们的时间表,这是一个小盒子,说纳比尔·弗里曼检查了[位置]在同一个Nabil Freeman改变了他的政治观点等的小型活动窗格,以及一个字面上表示42检查的结果,没有别的。

So I've got a cross-platform app which has a feature to allow people to checkin to Facebook Places locations through it. Right now, the actual location publishing works great, but I'm looking to get a little more exposure on peoples' timelines than what we have right now, which is a tiny box saying "Nabil Freeman checked into [location]" in that same small activities pane where it says "Nabil Freeman changed his political views etc.", and an aggregation that literally says "42 checkins" and nothing else.

我真的想要一个地图聚合,而不是突出显示一条路线,它显示了Nabil Freeman在过去一周或月份或其他任何地方检查过的所有引脚。每个签到的奖金是将一张地图用单个针脚发布到时间轴上,但是聚合更重要。

I really want a map aggregation where instead of highlighting a route, it shows all the pins where Nabil Freeman has checked in the past week, or month, or whatever. A bonus thing to have would be for each checkin to publish a map with a single pin onto the timeline, but the aggregation is a lot more important.

作为奖金,有没有办法把我自己的图像嵌入一个聚合?如果是这样,我可以使用Google Maps API或类似的服务构建自己的地图,只需嵌入它。

As a bonus, is there any way of embedding my own image into an aggregation? If so, I could construct my own map with Google Maps API or a similar service and just embed that.

非常感谢您的时间::)

Thanks so much for your time guys :)

推荐答案

使用您的应用程序的Open Graph设置,您所描述的声音有可能。

What you described sounds possible using the Open Graph settings of your app.

例如,我使用地图布局聚合制作了这个简单的签到地图:

For example, I made this simple "check-ins" map using a map layout aggregation:

我的应用程序的名称是ES1,一个测试应用程序。

My app's name is "ES1", a test app.

这显示已被用户审阅的5个酒吧的地标。鼠标悬停在酒吧五,所以显示标签。为此,我使用以下Open Graph聚合设置(我的对象'bar'具有自定义属性'rating'(int)和'location'(geopoint)):

This shows placemarks for 5 bars that have been reviewed by a user. The mouse is hovering over "Bar Five" so a label is displayed. For this, I used the following Open Graph aggregation settings (my object 'bar' has custom properties 'rating' (int) and 'location' (geopoint)):


  • 布局样式:地图

  • 排序方式:自定义,bar.rating,最高到最低

  • 聚合标题: / li>
  • 地图样式:多个动作

  • 贡献点:bar.location

  • Layout style: Map
  • Sort by: Custom, bar.rating, Highest to Lowest
  • Aggregation title: Review
  • Map style: Multiple Actions
  • Contributing point: bar.location

对于每个动作(评论),都会发布一个故事。它看起来像这样:

For each action ("review"), a story is published. It looks like this:

关键是使用布局Map配置故事附件。要查看此地图附件到故事,您必须单击时间轴单位中基于时间的链接。这是大约一分钟前的基于时间的链接的时间轴单元。

The key is to configure a "story attachment" with layout "Map". And to see this map attachment to the story, you have to click the time-based link in the timeline unit. Here's the timeline unit with the time-based link "about a minute ago".

我的故事附件(动作类型配置的一部分)配置如下:

My story attachment (part of the action type config) is configured like this:


  • 动作类型:评论

  • 已连接对象:栏

  • [动词时态数字:bar.rating(number selector),foo(header),points(units)

  • 附件布局: li>
  • 突出显示的点数:bar.location

  • 路线:[空白]

  • Action type: Review
  • Connected object: Bar
  • [verb tenses go here]
  • Attachment layout: Map
  • Numbers: bar.rating (number selector), foo (header), points (units)
  • Highlighted points: bar.location
  • Route: [blank]

不知道如何使用自己的自定义地图。也许您可以为每个地理点创建自定义地图,并将其保存为.png,然后使用.png for og:image。但地图不会互动。或者,只需要由og:url指定的页面包含您想要的自定义地图。

Not sure about how you would use your own custom map. Maybe you could create a custom map for each geopoint and save it as a .png then use the .png for og:image. But the map would not be interactive. Alternatively, just have the page specified by og:url contain the custom map you want.

这篇关于使用Facebook打开图表聚合进行签入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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