I'm really struggling with sharing youtoube videos from a website via facebook.
I'm trying to achieve the following:
I want to share a video which is hosted on youtube. The video should be playable on facebook. Next to the video I need to have the title and the description. The title links to the website, where people can share the video. Something like this:
However i always end up with this:
I can get the correct "layout" of the share with the image on the left, and the text on the right, but only with an og:image meta tag that points to a non-existent image (404).
As soon as the og:image meta tag points to an existing image, the layout changes. Why does this happen? I'm lost.
Is it the format of the image? (470*236) For my purpose it is crucial that the image AND the text are shared, since the text (actually it is the title) links to the website that should be shared.
Also something really strange, when I'm debugging the "Open Graph Object Debugger" it looks like it is supposed to. The sharer.php delivers the correct "view" on 50% of the ocasion. When it is actually shared, it only works when I have a 404 on the og:image.
This is the content of my "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:
As 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 anyone an idea how to fix this? Help is much appreciated!
Related
Trying to implement the action.devices.commands.mediaClosedCaptioningOn command for the TransportControl trait.. I have included 'CAPTION_CONTROL' in the transportControlSupportedCommands array I send on the SYNC intent for the device, but when I actually ask Assistant to turn on subtitles on the device it replies "That device cannot play video" and my code never actually gets an EXECUTE Intent from Assistant.
I've also successfully implemented the mediaShuffle command but noticed that when I issue it, Assistant responds with "Music will shuffle after the current item" when my device actually plays videos.
Anyone have any clue how I tell Assistant that my device plays video? I can't seem to find it in the documentation for TransportControl -- is it under a different trait maybe?
Edit 10/13/2020:
As requested, the complete SYNC response I'm currently sending for this device:
{
"requestId": "11724082196092058876",
"payload": {
"agentUserId": "xxxxxx",
"devices": [
{
"id": "10.0.6.252",
"type": "action.devices.types.STREAMING_STICK",
"traits": [
"action.devices.traits.TransportControl",
"action.devices.traits.Volume",
"action.devices.traits.MediaState"
],
"name": {
"name": "Bedroom Stick"
},
"willReportState": true,
"roomHint": "bedroom",
"attributes": {
"transportControlSupportedCommands": [
"NEXT",
"PREVIOUS",
"PAUSE",
"STOP",
"RESUME",
"CAPTION_CONTROL",
"SEEK_TO_POSITION",
"SEEK_RELATIVE",
"SET_REPEAT",
"SHUFFLE"
],
"volumeMaxLevel": 100,
"volumeCanMuteAndUnmute": true,
"levelStepSize": 10,
"commandOnlyVolume": false,
"volumeDefaultPercentage": 100,
"supportActivityState": false,
"supportPlaybackState": true
}
}
]
}
}
Exact assistant queries that produce this issue include "OK Google, turn on subtitles on Bedroom Stick" (Response: "That device can't play videos.") and "OK Google, shuffle on Bedroom Stick." (Response: "Alright, music will start shuffling after this track.")
There are certain changes you need to make to your sync response that you have posted which might make your device function properly .
In the sync response I do see that you are making use of a STREAMING_STICK as your device type. If you go through the documentation you will see that this device has the following required traits :
action.devices.traits.AppSelector
action.devices.traits.MediaState
action.devices.traits.TransportControl
action.devices.traits.Volume
Your sync response is missing the AppSelector trait.
It would be good to add the deviceInfo attribute at the end of the sync response.
More information about how to work around with Streaming stick can be found here :
https://developers.google.com/assistant/smarthome/guides/streamingstick#response
I recently created a custom block type with acf like mentioned in the doc, it works just fine in the edit interface in the back-office, but in the front I did not get anything, and when i inspect the html code i get the content commented like this:
<!-- wp:acf/highlighted-posts { "id": "block_5e97574edd1fa", "name": "acf\/highlighted-posts", "data": { "titre": "", "_titre": "field_5e972e607d71e", "read_more": "", "_read_more": "field_5e973516c767d" }, "mode": "preview" } /-->
Any ideas please ! ?
For anyone who is facing this issue: you must use the WordPress Built in function the_content(), otherwise the content will not be parsed correctly. Or you can use the method parse_blocks(), more information’s in the following link :
https://developer.wordpress.org/reference/functions/parse_blocks/
[UPDATE] I checked this StackExchange out, but this does not work! It converts the typed in markup language into this question mark...
I manage a Facebook Page that deals with music videos, and I always link back to the original artist / group for discovery purposes (the reason for this question) and giving credit to them. However, I am having a difficult time with one link to a specific group.
The main Facebook Page title that I am trying to link to is 15&
Normally, in a post, you would type in #15& or #Stack Overflow, and you would select the correct item from the drop-down menu. As such...
However, that does not work because of the & at the end of the name. That stops me from linking to that page. There are no more suggestions in the drop-down to choose from.
However, I thought there was a workaround to this by linking through the ID, but I have not been able to figure it out.
Something like, #[PageID]. In my case, #[413447808702858]; however, this does not work!?
What is the workaround to doing this?
Here is the Facebook Graph for 15&, but I copy-pasted the text below.
{
"id": "413447808702858",
"about": "15& Official Facebook",
"band_members": "\ubc15\uc9c0\ubbfc (Jimin)\n\ubc31\uc608\ub9b0 (Yerin)",
"can_post": false,
"category": "Musician/band",
"checkins": 0,
"cover": {
"cover_id": 677497282297908,
"offset_x": 0,
"offset_y": 0,
"source": "https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-xpa1/t1.0-9/s720x720/10320593_677497282297908_5814182992929119023_n.jpg"
},
"has_added_app": false,
"is_community_page": false,
"is_published": true,
"likes": 151126,
"link": "https://www.facebook.com/15andOfficial",
"name": "15&",
"parking": {
"lot": 0,
"street": 0,
"valet": 0
},
"record_label": "JYP Entertainment",
"talking_about_count": 5017,
"username": "15andOfficial",
"website": "http://15and.jype.com, http://cafe.daum.net/15And, http://twitter.com/jypnation, http://www.youtube.com/jypentertainment",
"were_here_count": 0
}
You can type the page's username, this will give the exact page name with that username
the page username is 15andOfficial
I use a like button box_count style for several articles on my page and grab the like count via the Graph API for further use. The problem is the like button on my page says 7 likes, but when I enter the exact same URL into Graph API it does not list any likes at all.
This only happens to some of my articles, not all.
https://graph.facebook.com/?ids=http://www.example_url.de -> no shares/likes
(actually the API only lists the ID here, nothing else)
But http://www.example_url.de entered in the like Button tool says 7 likes.
How can that be? Thank you very much for your help!
The like button often represents more than just likes from a user click, it includes share count, send count, tagged count etc: so this number will often be different from the user like object count in graph api.
Shawn is right.
The insight document says...
Why does the count next to my Like Button not match what I see in Insights?
The count next to the Like Button represents the sum of Like Button clicks, News Feed likes, News Feed comments, and shares on Facebook.
You can check the real numbers by using FQL query below.
SELECT normalized_url, like_count, share_count, total_count, comment_count, commentsbox_count
FROM link_stat WHERE url ='URL'
[
{
"normalized_url": "URL",
"like_count": 64,
"share_count": 17,
"total_count": 83,
"comment_count": 2,
"commentsbox_count": 1
}
]
like_count indicates the number of likes and total_count is the number they are showing around the like button. Each fields are described here.
The like button on your page must be using a slightly different URL that you expect.
The domains http://www.example_url.de and http://www.example_url.de/ are different in facebook's eyes. Something as insignificant as a forward slash "/" on the end of urls can make all the difference.
I'm guessing that's the issue.
Ok, the numbers are differente, but there is still a problem.
I currently have a page that shows 119 likes on the button, FQL gives me:
{
"data": [
{
"normalized_url": "http://wesleydesouza.com.br/prefixo9/",
"like_count": 80,
"share_count": 23,
"total_count": 119,
"comment_count": 16,
"commentsbox_count": 0
}
]
}
So, you could say Graph should show only 80, but it shows only 13 likes:
{
"id": "415948168442690",
"name": "Prefixo 9",
"picture": "http://profile.ak.fbcdn.net/hprofile-ak-snc4/372843_415948168442690_618178971_s.jpg",
"link": "http://wesleydesouza.com.br/prefixo9/",
"likes": 13,
"category": "Website",
"is_published": true,
"description": "Adicione o nono d\u00edgito de celular de S\u00e3o Paulo aos seus contatos do Google. R\u00e1pido. F\u00e1cil. Gr\u00e1tis.",
"about": "Adicione o nono d\u00edgito de celular de S\u00e3o Paulo aos seus contatos do Google. R\u00e1pido. F\u00e1cil. Gr\u00e1tis."
}
And this reflects inside Facebook's page admin, that also shows me only 13 likes.
For whatever reason, the facebook is not reading the opengrapgh tags on the following pages:
http://www.nydailynews.com/new-york/court-order-city-t-occupy-wall-street-protesters-stuff-zuccotti-park-article-1.977674
The FB Linter passes w/o any issues:
{
"url": "http://www.nydailynews.com/new-york/court-order-city-t-occupy-wall-street-protesters-stuff-zuccotti-park-article-1.977674",
"type": "article",
"title": "Court order: City can\u2019t keep Occupy Wall Street\u00a0protesters and their stuff out of Zuccotti Park \u00a0",
"image": [
{
"url": "http://assets.nydailynews.com/polopoly_fs/1.977661!/img/httpImage/image.jpg_gen/derivatives/searchthumbnail_75/image.jpg"
}
],
"description": "Hours after baton-wielding cops cleared Occupy Wall Street protesters and their tents out of Zuccotti Park, a judge signed a order Tuesday saying the demonstrators can return with their stuff.",
"site_name": "NY Daily News",
"updated_time": "2011-11-15T14:48:15+0000",
"id": "10150378344639794"
}
However when I try to like/recommend, only the link is pulled on my wall, and not any other tags.
If you compare your given url with another article's url You'll notice an extra section in your URL's version .... "Redirect Path" ... with the HTTP Code 301 which indicates an Permanent Redirect ... seems like this page is being redirected behind the scenes ... Hopefully that sheds some light on the issue ...
Little more info on the HTTP 301 Code