Commits

Alessandro Molina committed 161ee3b

Encode string before sending it to facebook for share

  • Participants
  • Parent commits 0124969

Comments (0)

Files changed (1)

File tgcomments/lib/__init__.py

         return
 
     fburl = 'https://graph.facebook.com/me/feed?access_token=%s' % fbauth.access_token
-    data = {'link':url, 'message':comment.body}
+    data = {'link':url, 'message':comment.body.encode('utf-8')}
     with closing(urlopen(fburl, urlencode(data))) as fbanswer:
         return json.loads(fbanswer.read())