Changed FB share to iframe (avoid popup blockers)

This commit is contained in:
Fergal Moran
2014-03-16 00:58:56 +00:00
parent 9ebf403505
commit b9d6f4dac9
2 changed files with 2 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ define ['jquery', 'utils', 'facebook'], ($, utils) ->
FB.ui
method: "feed"
name: "Check out this mix on Deep South Sounds"
display: "popup"
display: "iframe"
link: "http://" + window.location.host + "/" + model.get("item_url")
picture: com.podnoms.settings.staticUrl + model.get("mix_image")
caption: model.get("title")
@@ -39,8 +39,6 @@ define ['jquery', 'utils', 'facebook'], ($, utils) ->
, (response) ->
if response and response.post_id
utils.showAlert "Success", "Post shared to facebook"
else
utils.showError "Error", "Failure sharing post"
else
utils.showError "Error", "Failure sharing post"

View File

@@ -28,7 +28,7 @@
return FB.ui({
method: "feed",
name: "Check out this mix on Deep South Sounds",
display: "popup",
display: "iframe",
link: "http://" + window.location.host + "/" + model.get("item_url"),
picture: com.podnoms.settings.staticUrl + model.get("mix_image"),
caption: model.get("title"),
@@ -36,8 +36,6 @@
}, function(response) {
if (response && response.post_id) {
return utils.showAlert("Success", "Post shared to facebook");
} else {
return utils.showError("Error", "Failure sharing post");
}
});
} else {