Gigya can post media items to your newsfeeds. This ability is not currently implemented in the module but is something I'd like to add. Since there are many different types of media out there and ways to attach them to nodes/content, I'm interested in hearing about what use-cases and desired features you most want.

I think the best solution is probably going to be to wait for the Media module and Drupal 7 for a more unified treatment of media.

Comments

EvanDonovan’s picture

Do you think we should wait for Drupal 7? I'm not sure how long it will be till a full release, much less general adoption. Probably not until the end of the year.

I think that FileField and Embedded Media Field are probably the two most forward-compatible solutions for Drupal 6, since they use CCK, and the ones that we should consider supporting. On my site, for example, we use Embedded Media Field for audio/video. (I think that there's an Embedded Image Field as well, but most people use the ImageField module for images, I believe, which is the one that was essentially ported into Drupal 7 core.)

azinck’s picture

Status: Active » Fixed

This is now implemented in a pluggable way. The module makes a hook_gigya_shareUI_alter call before sharing anything. At that point other modules can add whatever media they wish, like so:

function hook_gigya_shareUI_alter(&$object){
$object['user_action_params']['media_item'] = array(
		'type'=>'flash',
		'src'=>'http://www.youtube.com/watch?v=fzzjgBAaWZw',
		'previewImageURL'=>'http://motherjones.com/files/legacy/mojoblog/funny-cats-a10.jpg'
	);
}

The object passed into that function contains a lot of contextual information about the sharing and virtually all of the features of the ShareUI are supported. Documentation needs to be improved to reflect this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jenlampton’s picture

Thank you so much for this change, but can you please update the documentation on gigya to reflect this page? There is still some terrible advice on that page telling people to edit .module files (http://wiki.gigya.com/050_Socialize_Plugins/020_Drupal)!

EvanDonovan’s picture

Title: Sharing media (image, video, ?) via Gigya Socialize » Sharing media (images, video, etc.) via Gigya Socialize (document hook_gigya_shareUI_alter)
Component: User interface » Documentation
Category: feature » task
Status: Closed (fixed) » Active

@azinck: Nice! Changing this to a documentation request then as per #4. Feel free to close if you think that is not proper.

@jenlampton: I think you may need to post an issue in Gigya's forum for them to see your request. azinck, afaik, doesn't have edit access there, and Gigya's staff doesn't always check the issue queue regularly.

liorkesos’s picture

Hi Evan,
We (linnovate) through Gambasoft (Yaniv Aran) are trying to help gigya address the issueque in a more "drupal native" way.
Gambasoft has already committed some of the pending patches in to the module and we're generally trying to stabilize both the module and the documentation.
So I hope the general maintanence and the module stability improves.
@Jenlampton, aznick provided the hook to address the changes in the modules code, Do you think we should change the docs to explain the use of the hook in custom code?
We will be trying to release a stable 3.x release this week and we can then look at any documentation quirks and align them to the current state.

ellenvdk’s picture

Hi!
I'm looking for that functionality too. I place my new blog messages on a the wall of my Facebook page.
It's working well, but not with images, although I include the image in my node teaser.

Can someone tell me how to use the hook that Azinck wrote?
I made a new module with in the .module file this function but it's not working.
Also, the url 'http://www.youtube.com/watch?v=fzzjgBAaWZw' and 'http://motherjones.com/files/legacy/mojoblog/funny-cats-a10.jpg' are static, can they be changed in Drupal?

Thanks!!! This will be great once it's working!
Gr,
Ellen

Gigya’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Gigya's 6.x module is deprecated. We no longer maintain this version. We encourage upgrading to our latest module.