Get youtube id !

Get help developing custom BBCodes or request one.
Post Reply
donovanes
Registered User
Posts: 32
Joined: Sat Mar 17, 2012 6:51 pm

Get youtube id !

Post by donovanes »

Hye,

When i put a youtube video with a bbcode on my phpbb forum and when i want to share it with facebook, i see the title but not the youtube thumbmail in the sharing facebook window

For example, i need to get in this url

Code: Select all

http://www.youtube.com/watch?v=IEtZjmZpf1Q
only this part

Code: Select all

IEtZjmZpf1Q
to put it in the meta with meta og:image

If anyone can help me ?

Best regards !
User avatar
Mick
Support Team Member
Support Team Member
Posts: 22637
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket probably.

Re: Get youtube id !

Post by Mick »

Moved for you . . .
"The more connected we get the more alone we become" - Kyle Broflovski©
donovanes
Registered User
Posts: 32
Joined: Sat Mar 17, 2012 6:51 pm

Re: Get youtube id !

Post by donovanes »

Thanks Mick,

I try to modify a bbcode demo to make appear the meta tag in the topic like this:

BBCode:

Code: Select all

[yt]http://youtu.be/{IDENTIFIER}[/yt]
HTML:

Code: Select all

<object type="application/x-shockwave-flash" width="720" height="405" data="http://www.youtube.com/v/{IDENTIFIER}">
   <param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}" />
   <param name="allowFullScreen" value="true" />
</object>

 <meta property="og:image" content="http://i.ytimg.com/vi/{IDENTIFIER}.default.jpg" />
Even if we can see the meta tag in the topic, it's not taken by the facebook share.

If anyone can help me ?

Thanks.
donovanes
Registered User
Posts: 32
Joined: Sat Mar 17, 2012 6:51 pm

Re: Get youtube id !

Post by donovanes »

Hye,

If anyone can help me here I'd greatly appreciate it, thanks.
User avatar
Lumpy Burgertushie
Registered User
Posts: 67986
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Get youtube id !

Post by Lumpy Burgertushie »

I am not clear on what you are trying to do.

why are you trying to share a post from your board that has a link to a youtube video.

why not just post the youtube video link directly on facebook instead.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
donovanes
Registered User
Posts: 32
Joined: Sat Mar 17, 2012 6:51 pm

Re: Get youtube id !

Post by donovanes »

Hye Robert,

I think it is easier and faster from my board and for the challenge, i want to resolve this technical problem too.

If you can help me, thanks !
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Get youtube id !

Post by Oyabun1 »

I doubt it will work placing the meta tag in a BBCode because meta tags are supposed to be the <head></head> section of the page and the BBCode will place it into the body. Therefore, the meta tag probably isn't being read.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
Post Reply

Return to “Custom BBCode Development and Requests”