1
科尔多瓦社交分享插件(Facebook)总是在.then(函数(res))中返回true。在发布之前显示为true.If我们取消分享张贴,然后它也返回true。然后(函数())在发布前返回true。请大家帮忙,它非常紧急。需要帮助。离子科尔多瓦社交分享插件总是返回true
$scope.share_fb = function(message, logo, url){
$cordovaSocialSharing.shareViaFacebook(message, '', url)
.then(function (result) {
var link=site_url+"share_point?id="+user_id;
$http.post(link).success(function(res){
$scope.load_profile();
});
$ionicLoading.hide().then(function(){});
}, function(error) {
alert("Cannot share on Facebook");
})
}
$cordovaSocialSharing.canShareVia("facebook", message, logo, url).then(function(result) {
$scope.share_fb(message, logo, url);
}, function(error) {
alert("Cannot share on Facebook");
});
Plz在这里添加一些代码 –
嗨,大家好,请帮助。 – ujjal