Subversion Repositories SmartDukaan

Rev

Rev 2649 | Rev 2923 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2649 Rev 2653
Line 1... Line 1...
1
window.fbAsyncInit = function() {
1
window.fbAsyncInit = function() {
2
	FB.init({
2
	FB.init({
3
		appId  : '209449825766256',	//186498998073288,
3
		appId  : '209449825766256',	// 186498998073288
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
};
8
};
Line 30... Line 30...
30
    var e = document.createElement('script');
30
    var e = document.createElement('script');
31
    e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
31
    e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
32
    e.async = true;
32
    e.async = true;
33
    document.getElementById('fb-root').appendChild(e);
33
    document.getElementById('fb-root').appendChild(e);
34
    
34
    
-
 
35
    if (fbData.page)	{
35
    if (fbData.page.liked)	{
36
        if (fbData.page.liked)	{
36
		$(".like").show();
37
    		$(".like").show();
37
	} else	{
38
    	} else	{
38
		$(".unlike").show();
39
    		$(".unlike").show();
39
	}
40
    	}
-
 
41
    } else	{
-
 
42
    	window.top.location.href = 'http://www.facebook.com/mysaholic?sk=app_209449825766256';
-
 
43
    }
40
	
44
	
-
 
45
	$('#share').click(function(){
-
 
46
		publishStream();
-
 
47
	});
-
 
48
	
41
	function showFriendSelector()	{
49
	$('#select-friends').click(function(){
42
		FB.ui({
50
		FB.ui({
43
			method: 'apprequests',
51
			method: 'apprequests',
44
			title: 'Invite Friends to Android Festival',
52
			title: 'Invite Friends to Android Festival',
45
			message: 'Android Festival on Saholic.com - Massive discounts on hot selling Android smart phones'
53
			message: 'Check out Android Festival on Saholic.com - Massive discounts on hot selling Android smart phones'
46
		});
54
		});
47
	}
-
 
48
	
-
 
49
	$('#share').click(function(){
-
 
50
		publishStream();
-
 
51
	});
55
	});
52
});
56
});
53
57