1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
$('a#share').on('click', function(){
if( isMobile.any() ){ // iPad, iPhone, Android, Windows Mobile
// On utilise les applications et pas le navigateur
}else{
FB.init({appId: "391501017586601", status: true, cookie: true});
var obj = {
method: 'feed',
link: ogUrl,
picture: 'http://images.lecouffe.org/files/2010/02/Chronometre.png',
name: ogTitle,
caption: 'MX Timer',
description: 'Analysez vos temps et partagez vos résultats !'
};
function callback(response) {
document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
}
FB.ui(obj, callback);
}
}); |
Partager