Commented auto-facebook share

This commit is contained in:
Fergal Moran
2015-09-20 17:09:10 +01:00
parent 6a799acffa
commit 6633dfa5c5

View File

@@ -49,13 +49,14 @@ class Activity(BaseModel):
else:
action_type = "deepsouthsounds:play"
social_account = SocialToken.objects.filter(account__user=self.user.user, account__provider='facebook')[0]
facebook = OpenFacebook(social_account.token)
notification_html = {
object: wrap_full(self.get_object_url())
}
result = facebook.set('me/%s' % action_type, notification_html)
print(result)
if False:
social_account = SocialToken.objects.filter(account__user=self.user.user, account__provider='facebook')[0]
facebook = OpenFacebook(social_account.token)
notification_html = {
object: wrap_full(self.get_object_url())
}
result = facebook.set('me/%s' % action_type, notification_html)
print(result)
except Exception as ex:
print(ex)
pass