Bug 202045 - Facebook exports always to same album (the one initially selected)
Summary: Facebook exports always to same album (the one initially selected)
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-Facebook (show other bugs)
Version: unspecified
Platform: Gentoo Packages Unspecified
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-31 01:14 UTC by Ian Hubbertz
Modified: 2018-01-30 21:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 1.0.0


Attachments
Logfile of digikam + KIPI traces (28.98 KB, text/plain)
2009-12-06 17:40 UTC, Ian Hubbertz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Hubbertz 2009-07-31 01:14:56 UTC
Version:           0.5.0 (using KDE 4.2.98)
Installed from:    Gentoo Packages

Facebook export in digikam-1.0-beta3 / kipi-plugins-0.5.0 always exports the photos to the same album, regardless of the selected album in export dialog.


Steps to reproduce:

1. Select Image
2. Start Export->Facebook
3. Change destination album
4. Start Upload

--> Result: On facebook, the uploaded image is found in the first album.


Note: I don't have a special configuration and tried multiple times: The problem is reproducable all the time.
I never used any other tool to upload photos to FB, so the first album was created by KIPI FB Export. (Auto Creation).

I also tried to create an album manually on FB, it is visible and selectable in the KIPI FB Export Dialog, but photos also ends up in the wrong album.
Comment 1 Johannes Wienke 2009-09-25 14:50:08 UTC
Does this still happen with kipi-plugins 0.6?
Comment 2 caulier.gilles 2009-10-01 12:19:08 UTC
Ian,

Please try with kipi-plugins 0.7.0... Thanks in advance

Gilles Caulier
Comment 3 Ian Hubbertz 2009-10-07 00:40:59 UTC
Problem still happens with both 0.6 and 0.7 :-(
Comment 4 Ian Hubbertz 2009-10-19 23:33:57 UTC
I also tested with 0.2.0 (digikam 0.10) - same problem, so it is not a regression.

I assume that other people have no problems with FB export (or no one else is using it? ;-) ), so there must be something "special" with my account.

How can I help to track down the problem?
Comment 5 Johannes Wienke 2009-10-24 16:27:42 UTC
Can you do the following steps:

1. compile the trunk version of kipi-plugins and install it
2. open a konsole
3. start kdebugdialog, search for kipi and activate all toggles you can find for kipi
3. close kdebugdialog
4. start digikam in this console, export a photo to facebook
5. close digikam
6. attach the konsole output to this report but be sure that there is no private data in it before attaching it.
Comment 6 Luka Renko 2009-11-01 00:05:36 UTC
I have just tested current SVN version with two newly created albums and I can select album to upload to and it is uploaded correctly. 
As Johannes have written: we will need more details in order to reproduce this problem...
Comment 7 Ian Hubbertz 2009-12-06 17:40:23 UTC
Created attachment 38875 [details]
Logfile of digikam + KIPI traces
Comment 8 Ian Hubbertz 2009-12-06 17:41:50 UTC
I tried some weeks ago to provide the needed data, but Facebook API was broken completely (it seemed to be a problem on FB side).

Now I tried again today with FB Export 0.8 

    Facebook-Import/Export
    Version 0.8.0
    Unter KDE 4.3.4 (KDE 4.3.4)

. I deleted the album where all fotos are exported to and tried to upload some photos to my "wall album".
Fotos were uploaded successfully, but a new album "KDE KIPI Import/Export Plugin Photos" was created for them.

If I upload more photos they all end in this album.

I attached a trace log of uploading additional fotos.

I have no knownledge of the FB protocol, but it seems a quite strange to me that all Facebook-albums have an ID of '0' - maybe that's the problem.
Comment 9 Johannes Wienke 2009-12-06 21:57:46 UTC
Ok, I see the problem. Album ids are strings and not numbers: 100000135601364_451 cannot be parsed as a number. That's the problem.
Comment 10 Johannes Wienke 2009-12-06 22:37:10 UTC
SVN commit 1059528 by jwienke:

Make album and photo ids QStrings, as this seems to appear sometimes.

Ian, can you test it again with this version?

CCBUG: 202045

 M  +6 -6      facebookjob.cpp  
 M  +2 -2      facebookjob.h  
 M  +2 -4      fbitem.h  
 M  +9 -9      fbtalker.cpp  
 M  +3 -3      fbtalker.h  
 M  +2 -2      fbwidget.cpp  
 M  +1 -1      fbwidget.h  
 M  +8 -8      fbwindow.cpp  
 M  +3 -3      fbwindow.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1059528
Comment 11 Ian Hubbertz 2009-12-07 01:06:30 UTC
Thanks! Works fine now! :-)