After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 352394 - F-Spot should support exporting to Facebook photo albums
F-Spot should support exporting to Facebook photo albums
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: General
CVS
Other All
: Normal enhancement
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-22 14:24 UTC by Scott Ferguson
Modified: 2007-11-27 14:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glade file for facebook exporter (30.68 KB, text/plain)
2007-05-13 20:36 UTC, George Talusan
  Details
module for facebook export (14.51 KB, text/plain)
2007-05-13 20:37 UTC, George Talusan
  Details
hooks to main code to enable facebook exporter (4.18 KB, patch)
2007-05-13 20:39 UTC, George Talusan
none Details | Review
Same code, working as an extension (26.51 KB, patch)
2007-05-15 14:32 UTC, Stephane Delcroix
needs-work Details | Review
Extension working with r3411 (28.08 KB, application/x-compressed-tar)
2007-10-04 01:25 UTC, Valentin David
  Details

Description Scott Ferguson 2006-08-22 14:24:46 UTC
Facebook recently released a developer's platform allowing access to all sorts of goods on the site.  For us college folk, an export function to Facebook photo albums would be a nice touch.
Comment 1 Stephane Delcroix 2006-08-22 16:30:59 UTC
another good candidate for the plugins...
Comment 2 Alexander “weej” Jones 2007-03-01 02:05:47 UTC
This wasn't actually possible until today.

Here is the new documentation for the functionality: http://developers.facebook.com/documentation.php?v=1.0&doc=photoupload

(Also just to note, the target audience for this has expanded past just academics, as Facebook has been open to all for a while, now.)
Comment 3 Alexander “weej” Jones 2007-03-18 23:47:38 UTC
The Facebook developers have released an iPhoto plugin. One could probably clone it.

http://blog.facebook.com/blog.php?post=2253657130
Comment 4 Thomas Van Machelen 2007-03-19 07:49:29 UTC
There is already a c# implementation in the mono svn tree.  This should ease the development effort.

http://svn.myrealbox.com/viewcvs/trunk/facebook-sharp/
Comment 5 George Talusan 2007-04-03 22:38:09 UTC
Commenting on this so I can be added onto the cc: list.

For the record I have a semi-working Facebook plugin using Thomas's library.  I just need to support tagging and making sure an album can contain only 60 pictures.

Soon...
Comment 6 George Talusan 2007-05-13 20:36:52 UTC
Created attachment 88129 [details]
glade file for facebook exporter
Comment 7 George Talusan 2007-05-13 20:37:42 UTC
Created attachment 88130 [details]
module for facebook export
Comment 8 George Talusan 2007-05-13 20:39:42 UTC
Created attachment 88132 [details] [review]
hooks to main code to enable facebook exporter
Comment 9 George Talusan 2007-05-13 20:42:30 UTC
The above attachments are the glade file for the facebook exporter, the actual exporter module, and a patch to the main code to enable the exporter.  Changes need to made to f-spot.glade so that the exporter is included in the Export menu.

Apologies for the tardiness and incompleteness of this patch.  Real life caught up to me.  The things left to do are to add proper tagging functionality.  The facebook-sharp library also needs to be brought into the build.

I did not include facebook.glade inside of f-spot.glade since the patch would have been to huge to merge.  Besides, the .glade file is loaded into memory when it needs to be.
Comment 10 Thomas Van Machelen 2007-05-15 05:15:13 UTC
Thanks for your patch, George.

We'll try to look into it as soon as possible.

Regards,
Thomas
Comment 11 Stephane Delcroix 2007-05-15 14:32:05 UTC
Created attachment 88209 [details] [review]
Same code, working as an extension

I reworked George code to work as an Extension. I only made the required changes to made it compiles, load and display the dialog while trying to export.
I didn't reviewed the code not tested the export (I don't have any facebook account).
To have it working, you need f-spot r3103. I also (for now) bundled both Mono.Facebook.dll and gnome-keyring-sharp.dll in the archive...
Comment 12 Thomas Van Machelen 2007-05-16 06:07:53 UTC
First:
I required some changes to be done to facebook-sharp as there were some problems with getting user information (it might have worked for other users though); these are fixed in svn now, so the facebook sharp dll needs updating

Second:
The ui isn't as good as i expected.  After i had logged in to facebook the "add" button never became active; and i'd rather see an ok button.  The caption box is too big, as is the "in this photo entry".  

More testing soon.
Comment 13 nicholas.tripp 2007-05-28 02:23:06 UTC
Hi I'd love to test this out and even try and look at some of the code.  Sorry for being a bit of a newb to thisbut I can't seem to get the diff added.  I've installed from the svn (f-spot reports version .40), I made a .diff file from the RAW output on the site and put it in the src folder and used the command from the site patch -p0 < facebook.diff 
and this happens 
patching file ExportStore.cs
Reversed (or previously applied) patch detected!  Assume -R? [n] y
Hunk #2 FAILED at 68.
Hunk #3 FAILED at 217.
Hunk #4 FAILED at 277.
Hunk #5 FAILED at 11.
Hunk #6 FAILED at 89.
Hunk #7 FAILED at 166.
Hunk #8 FAILED at 1500.
Hunk #9 FAILED at 218.
8 out of 9 hunks FAILED -- saving rejects to file ExportStore.cs.rej
when I try svn diff filename.diff 
it says it's not under version control.  Sorry again for the simple question, I know you guys are busy.
Comment 14 Valentin David 2007-09-28 17:31:20 UTC
I succeeded to make the last attachment to work. But the glade file had some mistakes I had to fix. It is still very unstable. But it works. Is there still someone working on it? I see the last dates are very old. Is there a possibility to put it on a SVN somewhere? Also, there is no copyright notice (except the name of the holder).
Comment 15 Peter 2007-10-02 23:04:02 UTC
This sounds like a nice feature :)

David - perhaps you could attach a revised to help out anyone wanting to test this code?
Comment 16 Valentin David 2007-10-04 01:25:28 UTC
Created attachment 96603 [details]
Extension working with r3411

Call me Valentin :P. Here it is.

* FacebookExport.addin.xml: Fix version of the core in the addin dependencies (to 0.4.0.3366).
* FacebookExport.cs: Fix name of the glade module when getting the interface for the "tag popup". Fix array out of bound access (happening while clicking randomly in the list of images).
* facebook.glade: Fixing some mismatching identifier with the source code. Set sensitivity of "add" button to true.
* Mono.Facebook.dll: Updating to last version.
Comment 17 Stian Jordet 2007-10-13 15:56:14 UTC
This is an great extension! But is the tagging supposed to work? If not, is this something that will come?

Thanks for the great work! :)
Comment 18 Stephane Delcroix 2007-11-27 13:46:09 UTC
committed in r3462, available for download on addins.f-spot.org

Comment 19 Andrew Overholt 2007-11-27 14:34:37 UTC
Should this appear in the list of available extensions if I'm using 0.4.0?
Comment 20 Maxxer 2007-11-27 14:52:16 UTC
(In reply to comment #19)
> Should this appear in the list of available extensions if I'm using 0.4.0?

Yes it should. It's not yet available online, tough.

Reading from manifest, it requires r3457. I'm not sure you will be able to use it on 0.4.0.


Trivial note for packager: _label should be "Facebook" only, since recent export menu redesign. And an accelerator would be fine (not F since there's already Flickr and Folder).