summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-06-16 10:01:50 -0400
committerluxagraf <sng@luxagraf.net>2016-06-16 10:01:50 -0400
commitcec274a4b7de8e07a3d7dc29127ba18f0dd42305 (patch)
tree30b2df9c17be24b3581828b59adf1dd1f88a6fe9 /app
parent9a8621da36350eb1f5461fcd09946a5ee94905a1 (diff)
added a placeholder facebook photo syndicator
Diffstat (limited to 'app')
-rw-r--r--app/syndication/syndicators.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/syndication/syndicators.py b/app/syndication/syndicators.py
index 0c35e06..189c760 100644
--- a/app/syndication/syndicators.py
+++ b/app/syndication/syndicators.py
@@ -67,7 +67,7 @@ def post_photo_to_twitter(photo):
def post_photo_to_flickr(photo):
flickr = flickrapi.FlickrAPI(settings.FLICKR_API_KEY, settings.FLICKR_API_SECRET)
- authorize_url = flickr.auth_url(perms='write')
+ flickr.auth_url(perms='write')
flickr.get_access_token(settings.FLICKR_VERIFIER)
sent = flickr.upload(filename=photo.get_image_path_by_size("original"), title=photo.title, description=photo.caption)
photo_id = sent.find('photoid').text
@@ -76,3 +76,6 @@ def post_photo_to_flickr(photo):
flickr.photos.geo.setLocation(photo_id=photo_id, lat=photo.latitude, lon=photo.longitude, accuracy=12)
except:
pass
+
+def post_photo_to_facebook(photo):
+ pass