I have a requirement where i have to display the youtube playlist collection from an url (in a html web page.).
for example the url (which has 2 playlists):
https://www.youtube.com/user/vikaskottari/playlists
When i use this url in an iframe, it displays a blank screen, with a console error:
Refused to display 'https://www.youtube.com/user/vikaskottari/playlists' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
any idea how do i achieve this.
use this script instead
https://www.youtube.com/embed/VIDEO_ID?playlist=aaaaaa,bbbbb,cccccc
where aaaaa, bbbbb,ccccc are the id of the youtube video.
or this one
https://www.youtube.com/embed/?listType=playlist&list=yyyyyy
where yyyyyy is the id of youtube playlist
regards
Related
Say I have original URL: https://flutree.web.app/NWfLo\
And I shorten it using Firebase Dynamic Link, and set with Social Metadata (image, title, desc), it becomes new URL : https://flut.page.link/hcpa
Now I want to have a Link Preview functionality, I'm using simple_url_preview package. Basically, the package did a GET request of the new URL and parse the og(s) property from the body.
The problem is, it returns the metadata of the original URL, as depicted below:
Behavior that I want to achieve is as below (Example from Telegram's Link Preview, same behavior observed on other major platform ie Twitter, WhatsApp etc):
So, how can I get the metadata of the Firebase Dynamic link itself and not the original/target URL?
i thought that the video id of a video was what was after watch?v so for the video see you again RgKAFK5djSk
but when i use this API to find the thumbnail of a video it doesn't work
http://img.youtube.com/vi/<RgKAFK5djSk>/maxresdefault.jpg when on this forum they say to only put the video id How to scrape the thumbnail of a youtube video from id? so if it doesn't works it because the id is not good when on the api i just need to put the id, if not that what's the error on the link after all it's true that if the id is not that what is it?
You need not to use angular brackets around Video ID.
Correct Link:
http://img.youtube.com/vi/RgKAFK5djSk/maxresdefault.jpg
I am trying to create a product catalog on Facebook using their pixel
The docs are here: https://www.facebook.com/business/help/887775018036966
Facebook detects the product information using the microdata (which is a json inside script tag)
The problem is that Facebook pixel reads this data automatically and it doesn't happen on a single page application except for the first page.
Is there any way to make Facebook read the microdata manually?
Create a new html file for your product page and then set URL redirects to go to that Html then every time someone views a product the FB pixels runs again and automatically detects the microdata
I found a way to force it to re-read microdata by adding a listener on routeChange event in next/router and replacing the href property in window.location object
router.events.on("routeChangeStart", (url) => {
window.location.href = url;
})
I want to get the authenticated user's mentioned media using Instagram API.Is that possible to fetch those posts? Besides, as of all of us know that Instagram has released a new feature like multiple image as single post.For these kind of posts we are receiving a gray image as image url and type as video.Can we get all the uploaded image urls or the first image url at least? It looks so bad while showing that grayed picture in our application.
There is no API to get media with user mentions.
For the multiple image, use this as work around for now: https://stackoverflow.com/a/42429285/423089
I'm trying to create a dynamic video gallery using drupal's "Embedded Media Field"; works fine for now i'm able to add my youtube videos which displays correctly.
However, i'm looking for a way to change the title of the node (of type video, with one cck field of type : "Embedded Video") i tried 'node autotitle' but I don't see the video's 'title' in the available tokens.
To sum up; I want to be able to just put the link of youtube video and get the node title to be replaced by the youtube's actual title.
Any idea ? Or is there a better module for this ?
There's a very similar request on drupal.org in the Video Embed Field module issue queue. They don't have an answer, but it'd be a good place to start. I use this module (instead of Embedded Media Field) and I've confirmed that it saves a chunk of metadata regarding the video in the Drupal database, so this technically should be possible.