Export to Facebook – Digikam workaround

Date: 16 Jun, 2013
Posted by: admin
In: hints & tips|internet, web design & development|linux, open source & software

Bookmark and Share

How to make Digikam’s built-in Facebook upload work again.

Digikam/KIPI plugin Facebook export

Error due to bug

Digikam photo management project

There’s a bug (319252) in the latest KIPI plugins – which Digikam and others use for exporting photos to Facebook (FB). When you attempt to connect to your FB account usually you’re presented with a browser window with a URL that bears a session token. The URL is copy-pasted in to the Export to FB plugin.

The bug causes the URL to be:


which doesn’t have the necessary session token in it.

Success SECURITY WARNING: Please treat the URL above as you would your password and do not share it with anyone.

Note: I’m using Firefox 21 on Kubuntu 13.04 (Raring) with KDE 4.10.3; KIPI plugins 4:3.2.0-0ubuntu1~ubuntu13.04~ppa1 and Digikam 4:3.2.0-0ubuntu1~ubuntu13.04~ppa1

Fix problem with upload

The fix is very simple. I noticed that the title appeared to bear the token … and indeed it does but the page is a generated page and viewing source and page inspection (using web developer tools) doesn’t  give the title either, or not easily.

All you need to do though is check your history for the previous page URL.

History shows correct URL

This is the URL expected by the KIPI plugin. It’ll be something like:


When you copy and paste this in to the KIPI plugin dialog box everything should work as before.

Enter the URL from your browser in to the KIPI plugin dialog

Just left-click on “Start Upload” and … success!

FB upload success

It works for me. If it works for you too then please comment. Thanks.


12 Responses to "Export to Facebook – Digikam workaround"

1 | John Green

June 23rd, 2013 at 12:10 pm

Many thanks, worked for me. using openSuse 12.3 64bit and digiKam 3.2.0.

2 | Daniel

June 29th, 2013 at 9:26 am

Lots of thanks for this.
Works great for me

3 | Kenny MacLeod

July 11th, 2013 at 8:56 pm

Worked for me, thanks.

Very few people must actually use these plugins otherwise there’d be many more complaints/queries on the internet!
It’s a shame that bugs like this can knobble decent programs like Gwenview & DigiKam for years. Frustrating and a little embarassing for us Linux users.

Thanks again for the workaround 🙂

4 | admin

July 17th, 2013 at 3:09 pm

The problem resides in the page that FB is returning. It includes some javascript:

that replaces the URL and history immediately after the page loads. This is apparently a security feature. Briefly looking it seems one needs to know the FB API and C++ and I’m not really on top of either of those. Oauth is a mystery to me so far. It sounds from what I’ve read like a particular redirect_uri is expected in the URL sent from digikam, and that URI is one set in the FB app. There’s no way to find that information publicly I don’t think.

5 | Ramon Casero

August 6th, 2013 at 5:58 pm

Thanks, it works for me

6 | saurabh

August 12th, 2013 at 10:50 am

Worked for me by disabling javascript. See the answer of this question for details: http://stackoverflow.com/questions/17266559/incorrect-url-without-an-access-token-for-facebook-login-using-rauth

7 | jeawrong

October 6th, 2013 at 9:36 pm

Works for me, thanks for the solution 😉

8 | putrani88@gmail.com

November 14th, 2013 at 6:15 am

thank you very much,, it’s work for me 🙂 (y) (y) keep share! 🙂

9 | Russell

December 23rd, 2013 at 1:03 am

Thanks so much! It worked like a champ for me.

10 | admin

January 9th, 2014 at 9:03 pm

No problem – kinda wish I had the nous to fix it for real though.

11 | Colwyn

July 8th, 2014 at 12:41 pm

Worked. Thanks. digikam 2.5.0, xubuntu, chromium

12 | Jonathan Dlouhy

December 11th, 2015 at 11:27 pm

Fantastic! This has been driving me nuts for a while now. Digikam 4.14.14 on Arch x86_64.
Thanks for figuring this out.


Flapjacktastic is just a random collection of musings, hints&tips, notes, information ... a collection of stuff really that's overflowed from the brain of this husband, father, potter, business-man, geek ...

past posts