我已在我的网页中插入了OG元标记,并提供了一个简单的链接,以帮助用户使用
分享Facebook上的内容https://www.facebook.com/sharer/sharer.php?u=[the-urlencoded-link-to-my-page]
链接。但我有两个问题:
og:url
,og:type
,og:title
,og:locale
,
og:image:width
,og:image:height
,og:image
和。og:description
页面上有$scope.makeBooking = function makeBooking(id){
$http({
method: 'POST',
url: 'booking',
data: JSON.stringify(result),
headers : { 'Content-Type': 'application/json' } ,// set the headers so angular passing info as form data (not request payload)
}).success(function (data, status, headers, config) {
$scope.window = $window.open('priceview','_blank');
$scope.test = "asdfasddfas";
angular.element($scope.window.document.body).append($compile($element.contents())($scope));
}).error(function (data, status, headers, config) {
});
}
个原始代码,但图片无法获取
既不显示在页面的预览框中,也不显示在共享上
状态。我错过了什么?怎么了?为了清楚起见,Google +上的分享工作完美(图片会显示,标题和说明都已到位。)
提前致谢:)