Facebook打开图表故事与地图附件 [英] Facebook Open Graph Story with Map Attachment

查看:164
本文介绍了Facebook打开图表故事与地图附件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个自定义的Open Graph故事(Spot a Special)。我希望能够使用地图附件将其发布到用户的墙上,因此我将其配置为:



,并且$在我的特殊对象中定义了location属性:





然后我尝试使用 https://graph.facebook.com/me/objects发布这个故事(使用Graph Explorer) / ishoppapp:specialaccess_token = ACCESS_TOKEN& method = POST& object = MY_OBJECT



MY_OBJECT

  {
app_id:277886232371318,
type:ishoppapp:special,
url:http://ishopp.co.za/ogp.html,
title:Sample Special,
description:这是一个很大的描述,
data:{
discount:20,
location:{
l atitude:-33,
longitude:18
}
}
}

它说,问题是已经固定,但我仍然有问题,所以我已经重新打开了问题的错误报告: https://开发人员.facebook.com / bugs / 1535630563354475 ,它已被Facebook接受。



如果有人想要订阅错误报告,我想会更多的关注。


I have created a custom Open Graph story (Spot a Special). I would like to be able to post this to a user's wall with a map attachment, so I configured it as such:

I set the "Hilighted Points" attribute to "special.location" and defined the location attribute in my "special" object:

Then I try to post this story (using the Graph Explorer) using https://graph.facebook.com/me/objects/ishoppapp:specialaccess_token=ACCESS_TOKEN&method=POST&object=MY_OBJECT

MY_OBJECT being:

{
    "app_id":277886232371318,
    "type":"ishoppapp:special",
    "url":"http://ishopp.co.za/ogp.html",
    "title":"Sample Special",
    "description":"This is a huge description.",
    "data": {
                "discount": 20,
        "location": {
            "latitude": -33,
            "longitude": 18
        }
    }
}

And the og tags on http://ishopp.co.za/ogp.html are:

<meta property="fb:app_id" content="277886232371318">
<meta property="og:title" content="Sample Spec">
<meta property="og:image" content="http://placehold.it/250x250">
<meta property="og:url" content="http://ishopp.co.za/ogp.html">
<meta property="og:type" content="ishoppapp:special">
<meta property="ishoppapp:discount" content="20" />
<meta property="ishoppapp:location:latitude" content="-33.00" />

However, when I post this, all I get is this: No map...

I have noticed that it says "posted" instead of "spotted". When use /me/ishoppapp:spot/?special=http://ishopp.co.za/ogp.html I get:

But still no map...

What is the fix for this?

Thank you.

解决方案

I would add a comment to the question but i have not enough reputation for that so i add it here.

In the facebook bug report https://developers.facebook.com/bugs/820798267972000/ it says that the issue is already fixed but i still have the issue so i'have reopened the issue with the bug report: https://developers.facebook.com/bugs/1535630563354475 and it has been accepted by facebook.

If anyone wants subscribe to the bug report i suppose it will get more attention.

这篇关于Facebook打开图表故事与地图附件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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