Since the media embed option in 1.7, users can paste links from different social channels to embed it in posts, comments and description fields.
It is not clear to a user which channels are supported by Open Social.
'Facebook, Flickr, Instagram, Youtube, Slideshare, Soundcloud, Spotify, TED, Twitter, Vimeo and a few more.' https://lets.getopensocial.com/embed_media_in_content

This is reported by a customer (PAC), since they don't want people hit-and-miss, especially on posts/comments. (because the description fields show a preview first).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Evelienschut created an issue. See original summary.

ronaldtebrake’s picture

Issue tags: +Novice
sameeran joshi’s picture

i am newbie,could you plz tell me which files should i change in the module?thanku

sameeran joshi’s picture

also a detailed installation of embedding a link could be helpful,thanks

jaapjan’s picture

Hi there,

There are multiple ways of embedding a link. Prerequisite is that the social_embed module is enabled (this is the only installation step). After that:

1. You can do it via the WYSIWYG editor in the Description/Body when you create a new topic/event/page.
2. You can post a compatible link in any comment or post and it will convert to an embed object automatically.

I think we should first focus on the description for 1. I suggest we add the description here:
 Embed in WYSIWYG

I think you can add this description:
"You can post a link to Facebook, Flickr, Instagram, Spotify, Twitter, Vimeo, Youtube and Ted.com and it will automatically convert to a embedded media object."

I am not entirely sure what would be the best way to do this but I think it would be best if you implement a hook_form_alter in the social_embed.module to alter the form which is displayed after clicking the button in the WYSIWYG.

sameeran joshi’s picture

I have got an idea clear of what to do, i. e like a placeholder we would be placing the text in the 'url' field. But In order to understand the functions in social_embed. Module where should i refer to. I dont know how to display text in it. Thanku

shubham_narlawar’s picture

Is this issue same as below issue?
https://www.drupal.org/project/emfield

jaapjan’s picture

Title: it should be clear to a user which media can be embedded, » It should be clear to a user which media can be embedded

How is it going with this issue? Any progress?

dcgoodwin’s picture

Assigned: Unassigned » dcgoodwin
dcgoodwin’s picture

Adding patch

dcgoodwin’s picture

FileSize
1.07 KB

Adding updated patch to correct minor typo in the description text of the previous patch.

dcgoodwin’s picture

Status: Active » Needs review
dcgoodwin’s picture

Assigned: dcgoodwin » Unassigned
tbsiqueira’s picture

Status: Needs review » Closed (outdated)

Because we are now moving to Media API this will be relevant, closing ticket.