我试图在跨平台发布中通过Open Graph标记一个地方。我在这里有我所做的代码:
$param['access_token'] = '<VALID ACCESS TOKEN>';
$param['place'] = 'https://foursquare.com/v/lifebit-hq/50d09677e4b019c8164dd068';
$facebookClient->api('/me/<APP_NAMESPACE>:<ACTION_TYPE>', 'POST', $param);
我的预期输出如下:
其中“标签”会在发布时自动弹出地图图钉。但相反,我总是得到这个:
没有贴标签。标签只会在我将鼠标悬停在针脚上时显示。
这是我的自定义开放图谱配置:
Object Type: Daycard (with a custom 'location' GeoPoint Property field)
Action Type: Visit
Attachment Layout: Map
Highlighted Points: daycard:location
这是我用于标记地点的Open Graph元标记
<meta property="<APP_NAMESPACE>:location:latitude" content="7.075569">
<meta property="<APP_NAMESPACE>:location:longitude" content="125.61214">
对于我可能错过的任何想法?
答案 0 :(得分:2)
<!-- Begin Open Graph metadata -->
<meta expr:content='"en_US"' property='og:locale'/> <meta expr:content='data:blog.canonicalUrl' property='og:url'/>
<b:if cond='data:blog.pageType == "item"'>
<meta expr:content='data:blog.pageName' property='og:title'/>
<meta content='article' property='og:type'/>
</b:if>
<meta expr:content='data:blog.title' property='og:site_name'/>
<b:if cond='data:blog.postImageThumbnailUrl'>
<meta expr:content='data:blog.postImageThumbnailUrl' property='og:image'/>
<b:else/>
<meta content='URL-FOR-IMAGE-YOU-WANT-TO-USE-IF-THERE-IS-NOT-A-THUMBNAIL-PHOTO-IN-THE- POST' property='og:image'/>
</b:if>
<b:if cond='data:blog.metaDescription'>
<meta expr:content='data:blog.metaDescription' property='og:description'/>
<b:else/>
<!-- Still looking for a way to use the post snippet if there's no description -->
</b:if>
<!-- End Open Graph metadata -->
答案 1 :(得分:0)
这是facebook开发人员部分,其中包含开放图表权限Visit facebook developers open graph permissions
的资源