diff options
Diffstat (limited to 'app/syndication')
-rw-r--r-- | app/syndication/syndicators.py | 5 |
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 |