Permalink
Browse files

Fixing when you search for the term 'facebook'

- No longer embeds "HACK THE GRAPH" page
- No "KeyError" on ?fbui_script=1 pages
  • Loading branch information...
1 parent a249bba commit 8abd811518902e9c78ed53dca6937f98c9ae562e @kennydude committed Jan 31, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 magic.py
View
@@ -115,9 +115,10 @@ def tumblr(url, r):
}
def facebook(url, r):
- if url.split('.')[0].split('/')[-1] in ['developers', 'help']:
+ if url.split('.')[0].split('/')[-1] in ['developers', 'help', 'apps']:
return None
u = url.split('/')[-1]
+ u = u.split('?')[0]
if u == '':
return None
j = getJson("http://graph.facebook.com/%s" % u)

0 comments on commit 8abd811

Please sign in to comment.