Skip to content
Browse files

requesting publish permissions when using facebook to share

  • Loading branch information...
1 parent a5f0dfb commit 820602c34cdeb9e53723d525258ee688d8d20532 Rohen Peterson committed Sep 2, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 vendor/assets/javascripts/mobdeals-ui/account/account.js
View
4 vendor/assets/javascripts/mobdeals-ui/account/account.js
@@ -262,10 +262,14 @@ MobDeals.Account = {
if (action) {
extraData = ',"action":"' + action + '"';
}
+
if (action == 'like' && actionData) {
extraData = ',"action":"' + action + '","objectToLike":"' + actionData + '"';
permissions = permissions + ',user_likes,publish_actions';
}
+ else if (action == 'refer') {
+ permissions = permissions + ',publish_actions';
+ }
var facebookLoginUrl = 'http://m.facebook.com/dialog/oauth?client_id=' + MobDeals.Account.facebookClientId +
'&redirect_uri=' + escape(redirectUrl) +

0 comments on commit 820602c

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