Sharing youtube video from website via facebook -


i'm struggling sharing youtoube videos website via facebook.

i'm trying achieve following: want share video hosted on youtube. video should playable on facebook. next video need have title , description. title links website, people can share video. this:

enter image description here

however end this: enter image description here

i can correct "layout" of share image on left, , text on right, og:image meta tag points non-existent image (404).

as og:image meta tag points existing image, layout changes. why happen? i'm lost.

is format of image? (470*236) purpose crucial image , text shared, since text (actually title) links website should shared.

also strange, when i'm debugging "open graph object debugger" looks supposed to. sharer.php delivers correct "view" on 50% of ocasion. when shared, works when have 404 on og:image.

this content of "og:video" tag:

{    "url": "http:\/\/www.youtube.com\/v\/7mavg2bfthc?autohide=1&version=3",    "secure_url": "https:\/\/www.youtube.com\/v\/7mavg2bfthc?autohide=1&version=3",    "type": "application\/x-shockwave-flash" } 

edit: requested i'm providing more information: https://graph.facebook.com/834694379943959

{    "id": "834694379943959",    "application": {       "id": "969191506424946",       "name": "fit.immoscout24.ch",       "url": "http://fit.immoscout24.ch/"    },    "created_time": "2015-04-22t12:35:06+0000",    "description": "d\u00e9niche rapidement ton nouveau logement gr\u00e2ce aux conseils de michel ! n\u00b01 : strat\u00e9gie ! utilise des arguments percutants pour convaincre le propri\u00e9taire",    "image": [       {          "height": 360,          "url": "http://img.youtube.com/vi/b5zioke_znm/0.jpg",          "width": 480       }    ],    "is_scraped": true,    "title": "michel pont",    "type": "video.other",    "updated_time": "2015-04-26t20:11:39+0000",    "url": "http://punch.immoscout24.ch/michel-pont",    "video": [       {          "secure_url": "https://www.youtube.com/embed/b5zioke_znm",          "type": "text/html",          "url": "https://www.youtube.com/embed/b5zioke_znm"       }    ] } 

has idea how fix this? appreciated!


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -