当我尝试从Facebook Open Graph显示地图布局时,帖子中没有显示地图。
帖子看起来像:
我的对象看起来像:
我使用Open Graph API
跟注meta tags
:
%meta{:property => 'og:type', :content => 'APP_NAMESPACE:OBJECT' }
%meta{:property => 'fb:app_id', :content => FacebookService.facebook_keys['app_id'] }
%meta{:property => 'og:title', :content => 'Title' }
%meta{:property => 'og:image', :content => 'https://b9eeb50d.ngrok.io/assets/itunes.png' }
%meta{:property => 'og:url', :content => 'https://b9eeb50d.ngrok.io/admin/posts' }
%meta{:property => 'APP_NAMESPACE:speed', :content => '2'}
%meta{:property => 'APP_NAMESPACE:speed:units', :content => 'm/s'}
%meta{:property => 'APP_NAMESPACE:distance', :content => '3' }
%meta{:property => 'APP_NAMESPACE:distance:units', :content => 'km' }
%meta{:property => 'APP_NAMESPACE:duration', :content => '10' }
%meta{:property => 'APP_NAMESPACE:duration:units', :content => 'min' }
%meta{:property => 'APP_NAMESPACE:startpoint:latitude', :content => '46.646443' }
%meta{:property => 'APP_NAMESPACE:startpoint:longitude', :content => '14.286696' }
%meta{:property => 'APP_NAMESPACE:startpoint:altitude', :content => '300' }
%meta{:property => 'APP_NAMESPACE:endpoint:latitude', :content => '46.637144' }
%meta{:property => 'APP_NAMESPACE:endpoint:longitude', :content => '14.294555' }
%meta{:property => 'APP_NAMESPACE:endpoint:altitude', :content => '300' }
%meta{:property => 'APP_NAMESPACE:highestpoint:latitude', :content => '46.642315' }
%meta{:property => 'APP_NAMESPACE:highestpoint:longitude', :content => '14.288530' }
%meta{:property => 'APP_NAMESPACE:highestpoint:altitude', :content => '350' }
%meta{:property => 'APP_NAMESPACE:route:latitude', :content => '46.640278' }
%meta{:property => 'APP_NAMESPACE:route:longitude', :content => '14.292015' }
%meta{:property => 'APP_NAMESPACE:route:altitude', :content => '300' }
%meta{:property => 'APP_NAMESPACE:route:latitude', :content => '46.643560' }
%meta{:property => 'APP_NAMESPACE:route:longitude', :content => '14.286588' }
%meta{:property => 'APP_NAMESPACE:route:altitude', :content => '310' }
%meta{:property => 'APP_NAMESPACE:route:latitude', :content => '48.892712' }
%meta{:property => 'APP_NAMESPACE:route:longitude', :content => '9.1751' }
%meta{:property => 'APP_NAMESPACE:route:altitude', :content => '310' }
%meta{:property => 'APP_NAMESPACE:route:latitude', :content => '48.893503' }
%meta{:property => 'APP_NAMESPACE:route:longitude', :content => '9.180593' }
%meta{:property => 'APP_NAMESPACE:route:altitude', :content => '310' }
%meta{:property => 'APP_NAMESPACE:route:latitude', :content => '48.893503' }
%meta{:property => 'APP_NAMESPACE:route:longitude', :content => '9.180593' }
%meta{:property => 'APP_NAMESPACE:route:altitude', :content => '310' }
%meta{:property => 'APP_NAMESPACE:route:latitude', :content => '48.889552' }
%meta{:property => 'APP_NAMESPACE:route:longitude', :content => '9.188318' }
%meta{:property => 'APP_NAMESPACE:route:altitude', :content => '310' }
%meta{:property => 'APP_NAMESPACE:route:latitude', :content => '48.889552' }
%meta{:property => 'APP_NAMESPACE:route:longitude', :content => '9.188318' }
%meta{:property => 'APP_NAMESPACE:route:altitude', :content => '310' }
有人知道我错了什么吗?
答案 0 :(得分:1)
我在facebook developper上打开了一个错误,以获得一些帮助!也许你可以通过以下链接关注它:https://developers.facebook.com/bugs/882577895191154/并且也可以解决你的问题