Skip to content
Browse files

Allow people to block Facebook (thanks @arnaudsj)

  • Loading branch information...
1 parent 04bc1ae commit 7e673b1c4e8c4198518a18c93de5c82b52e90080 @timdream timdream committed Nov 1, 2011
Showing with 9 additions and 7 deletions.
  1. +9 −7 wordcloud.js
View
16 wordcloud.js
@@ -304,12 +304,14 @@ jQuery(function ($) {
}
}
- FB.init({
- appId : FB_app_id,
- status: true,
- cookie: true,
- xfbml: true
- });
+ if (FB) {
+ FB.init({
+ appId : FB_app_id,
+ status: true,
+ cookie: true,
+ xfbml: true
+ });
+ }
GO2.init(
googleClientId
@@ -362,7 +364,7 @@ jQuery(function ($) {
$('#' + type + '_entry').show();
$('.feed_type_name').text($(this).parent('label').text());
- if (type == "fbok") {
+ if (type === "fbok" && FB) {
FB.getLoginStatus(function(response) {
if (response.session) {
getFbUser();

0 comments on commit 7e673b1

Please sign in to comment.
Something went wrong with that request. Please try again.