| Line 1... |
Line 1... |
| 1 |
window.fbAsyncInit = function() {
|
1 |
window.fbAsyncInit = function() {
|
| 2 |
FB.init({
|
2 |
FB.init({
|
| 3 |
appId : '190793234325400', //186498998073288
|
3 |
appId : '186498998073288', //190793234325400
|
| 4 |
status : true, // check login status
|
4 |
status : true, // check login status
|
| 5 |
cookie : true, // enable cookies to allow the server to access the session
|
5 |
cookie : true, // enable cookies to allow the server to access the session
|
| 6 |
xfbml : true // parse XFBML
|
6 |
xfbml : true // parse XFBML
|
| 7 |
});
|
7 |
});
|
| 8 |
FB.Canvas.setSize({ width: 640, height: 1080 });
|
8 |
FB.Canvas.setSize({ width: 640, height: 900 });
|
| 9 |
};
|
9 |
};
|
| 10 |
|
10 |
|
| 11 |
function publishStream() {
|
11 |
function publishStream() {
|
| 12 |
FB.ui({
|
12 |
FB.ui({
|
| 13 |
method: 'feed',
|
13 |
method: 'feed',
|
| 14 |
name: "Android Festival on Saholic.com",
|
14 |
name: "BlackBerry Discounts on Saholic.com",
|
| 15 |
link: "http://www.facebook.com/mysaholic?sk=app_209449825766256",
|
15 |
link: "http://www.facebook.com/mysaholic?sk=app_190793234325400",
|
| 16 |
picture: "http://social.shop2020.in:8080/Social/images/saholic-android.jpg",
|
16 |
picture: "http://static0.saholic.com/images/1000095/blackberry-curve-8520-icon-0.jpg",
|
| 17 |
caption: 'Android Festival @ Saholic.com',
|
17 |
caption: 'Discounts on BlackBerry @ Saholic.com',
|
| 18 |
description: 'Saholic.com is offering huge discounts, upto Rs.1500, on a whole range of popular Android handsets starting from Rs.5,000 to Rs.30,000 including Samsung Galaxy S II and many more.',
|
18 |
description: 'Saholic.com is offering huge discounts on a range of popular Blackberry phones and tablets.',
|
| 19 |
message: 'Massive Discounts on popular Android phones!'
|
19 |
message: 'Massive Discounts on popular BlackBerry Devices!'
|
| 20 |
},
|
20 |
},
|
| 21 |
function(response) {
|
21 |
function(response) {
|
| 22 |
if (response && response.post_id) {
|
22 |
if (response && response.post_id) {
|
| 23 |
} else {
|
23 |
} else {
|
| 24 |
}
|
24 |
}
|
| Line 28... |
Line 28... |
| 28 |
function shareThis(id, name, price) {
|
28 |
function shareThis(id, name, price) {
|
| 29 |
FB.ui({
|
29 |
FB.ui({
|
| 30 |
method: 'feed',
|
30 |
method: 'feed',
|
| 31 |
name: name + ' available at heavyly discounted price, ' + price,
|
31 |
name: name + ' available at heavyly discounted price, ' + price,
|
| 32 |
picture: 'http://static1.saholic.com/images/' + id + '/icon.jpg',
|
32 |
picture: 'http://static1.saholic.com/images/' + id + '/icon.jpg',
|
| 33 |
link: 'http://www.facebook.com/mysaholic?sk=app_209449825766256',
|
33 |
link: 'http://www.facebook.com/mysaholic?sk=app_190793234325400',
|
| 34 |
caption: 'Android Festival @ Saholic.com',
|
34 |
caption: 'BlackBerry Discounts @ Saholic.com',
|
| 35 |
description: 'Saholic.com is offering huge discounts on' + name + ' and a whole range of popular Android handsets starting from Rs.5,000 to Rs.35,999.'
|
35 |
description: 'Saholic.com is offering huge discounts on' + name + ' and a whole range of Blackberry handsets.'
|
| 36 |
},
|
36 |
},
|
| 37 |
function(response) {
|
37 |
function(response) {
|
| 38 |
console.log(id, name, price);
|
38 |
console.log(id, name, price);
|
| 39 |
if (response && response.post_id) {
|
39 |
if (response && response.post_id) {
|
| 40 |
} else {
|
40 |
} else {
|
| Line 70... |
Line 70... |
| 70 |
});
|
70 |
});
|
| 71 |
|
71 |
|
| 72 |
$('#select-friends').click(function(){
|
72 |
$('#select-friends').click(function(){
|
| 73 |
FB.ui({
|
73 |
FB.ui({
|
| 74 |
method: 'apprequests',
|
74 |
method: 'apprequests',
|
| 75 |
title: 'Invite Friends to Android Festival',
|
75 |
title: 'Invite Friends to avail discounts on BlackBerry',
|
| 76 |
message: 'Check out Android Festival on Saholic.com - Massive discounts on hot selling Android smart phones'
|
76 |
message: 'Check out BlackBerry phones on Saholic.com - Massive discounts on hot selling BlackBerry devices'
|
| 77 |
});
|
77 |
});
|
| 78 |
});
|
78 |
});
|
| 79 |
|
79 |
|
| 80 |
$('.link-coupon').click(function(){
|
80 |
$('.link-coupon').click(function(){
|
| 81 |
$(this).hide().siblings('.coupon').show();
|
81 |
$(this).hide().siblings('.coupon').show();
|