Bug 254457

Summary: Album target fails
Product: [Applications] digikam Reporter: cparg
Component: Plugin-WebService-FacebookAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, lure
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 1.7.0

Description cparg 2010-10-17 14:15:42 UTC
Version:           1.2.0 (using KDE 4.4.2) 
OS:                Linux

Uploading photos from Gwenview to Facebook with the Kipi plugin works in general but all photos go into the same Album in Facebook. Createing a new Album works, though But the KIPI form doesn't show the Albums on Facebook either.

Reproducible: Always

Steps to Reproduce:
Open Gwen view
shows some photo 
Invoke Modules/Export/Facebook
Create a new Album
Upload photo
create a new album
Try to change Album setting
> drop down shows only "Auto create new Album" (or similar, I used German localization)
upload photo 
> second uplaod goes into first Album



Actual Results:  
The second ploaded photo goes into the first Album

Expected Results:  
KIPI plugin should show up all Albums on Facebook and allwo to upload to specific Album. If some permission is missing Some clear error message should be shown to the user.

OS: Linux (x86_64) release 2.6.32-25-generic
Compiler: cc
Comment 1 caulier.gilles 2010-10-17 19:05:58 UTC
Try with kipi-plugins 1.5.0

Gilles Caulier
Comment 2 cparg 2010-10-17 23:48:40 UTC
I tried todays SVN Version of digikam and kipi-plugins and it fails, too.

-> Facebook-Import/Export – KIPI-Module 1.6.0
-> Erstellungsdatum: Oct 17 2010
Comment 3 cparg 2010-10-17 23:49:49 UTC
Here is the transcript:

digikam(26872)/KIPI (general) KIPIFacebookPlugin::FbTalker::parseResponseAddPhoto: Parse Add Photo response:
"<?xml version="1.0" encoding="UTF-8"?>
<photos_upload_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd">
  <pid>5824501400354625018</pid>
  <aid>5824501400324800395</aid>
  <owner>1356122410</owner>
  <src>https://fbcdn-photos-a.akamaihd.net/hphotos-ak-snc4/hs785.snc4/66503_1694507406629_1356122410_31921658_8282414_s.jpg</src>
  <src_big>https://s-hphotos-snc4.fbcdn.net/hs785.snc4/66503_1694507406629_1356122410_31921658_8282414_n.jpg</src_big>
  <src_small>https://fbcdn-photos-a.akamaihd.net/hphotos-ak-snc4/hs785.snc4/66503_1694507406629_1356122410_31921658_8282414_t.jpg</src_small>
  <link>http://www.facebook.com/photo.php?fbid=1694507406629&amp;set=a.1693597303877.2097035.1356122410</link>
  <caption/>
  <created>1287352130</created>
  <story_fbid>1694505686586</story_fbid>
</photos_upload_response>
"
digikam(26872)/KIPI (general) KIPIFacebookPlugin::FbTalker::errorToText: errorToText:  0 :  ""
Comment 4 cparg 2010-10-17 23:52:55 UTC
When hiiting the reload button in FB plugin:

digikam(26872)/KIPI (general) KIPIFacebookPlugin::FbWindow::slotReloadAlbumsRequest: Reload Albums Request for UID: 0
digikam(26872)/KIPI (general) KIPIFacebookPlugin::FbTalker::listAlbums: Requesting albums for user  0
digikam(26872)/KIPI (general) KIPIFacebookPlugin::FbTalker::getCallString: CALL:  "api_key=bf430ad869b88aba5c0c17ea6707022b&call_id=395213&method=facebook.photos.getAlbums&session_key=2.Lh6Ix9cxEMHT_Op9MJDelA__.86400.1287439200-1356122410&sig=4dc2bf5ace2aa28702a7694fc59e8524&uid=1356122410&v=1.0"
digikam(26872)/KIPI (general) KIPIFacebookPlugin::FbTalker::parseResponseListAlbums: Parse Albums response:
"<?xml version="1.0" encoding="UTF-8"?>
<photos_getAlbums_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd" list="true"/>
"
digikam(26872)/KIPI (general) KIPIFacebookPlugin::FbTalker::errorToText: errorToText:  0 :  ""
digikam(26872)/KIPI (general) KIPIFacebookPlugin::FbWindow::slotListAlbumsDone: Received albums (errCode =  0 , errMsg =  "" ):  ""
Comment 5 Luka Renko 2010-11-22 22:25:28 UTC
SVN commit 1199836 by lure:

Switch to new Facebook API for requesting application permissions. This
have prevented all new users since July 2010 to upload photos to specific
album or download photos (own or from their friends).
BUG: 225174
BUG: 254110
BUG: 254457


 M  +4 -1      NEWS  
 M  +5 -5      facebook/fbtalker.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1199836
Comment 6 Luka Renko 2010-11-23 07:11:37 UTC
You need to execute Change permission to authorize application.