I can't really figure out what I doing wrong here. My open graph code, I think it's correct, but it won't play the video inline like I expect it to:
view-source:http://recordmob.com/dev/?{%22track_id%22:%2284%22}
I pop it into the linter on facebook and it comes back all aces?
https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Frecordmob.com%2Fs%2FS
Why the heck doesn't this play inline like it should? I'm pulling my hair hour.
The video source URL is HTTP only - are you browsing Facebook with HTTPS enabled? Facebook won't embed content that would cause mixed content - either include a secure URL for the video, or disable HTTPS on your facebook account - i recommend the former
Related
I want to get the m3u8 link which loaded after playing video. From the website https://www.firstonetv.eu. It's unavailable in HTML source code. Now I can see it on network tab in Chrome. Here is the image:
Network tab snap
But I want to get it through PHP.Also, a javascirpt solution is appreciated. How could I get the m3u8 link?
Every site is different. You would have to reverse engineer their site to figure out how it's getting the URL to the HLS playlist.
Alternatively, a generic solution could be implemented by writing a browser extension to look for application/x-mpegURL in the content type headers in HTTP responses... and when you find one, log it or open it elsewhere. Keep in mind that the video you get could be anything... ads and such.
What you should do instead though is contact the site and ask for access to their API or a better proper way to do this. You do have their permission, right?
This could be a fairly open question but I need to make posts to various social media websites such as facebook, twitter, linkedin, google etc. Now keep in mind that this is a true post and not just a share - in other words, I have stored the user credentials via OAuth and am going to make a formatted post to their wall, feed etc.
Question: Is there someway I can generate an exact or very close preview of the post on various social media? For example, can I show the user what their post will look like on facebook or google before they make the post?
I searched around the internet and all I could find is information about sharing.
I am using PHP, Javascript
You can read the Open Graph tags of the URL with JavaScript or PHP, for example: https://github.com/fiann/jquery.ogp
You can put the tags together for a view, but you can never be 100% sure how it will look like, especially on Facebook.
I'm using Facebook Debugger for the URL's i try to share
https://developers.facebook.com/tools/debug/og/object/
Show existing scrape information gives me Error parsing input URL, no data was cached, or no data was scraped. and when URL is shared, no thumbnail is shown.
However after using Fetch new scrape information I'm getting proper output, and the sharing is working fine.
This is not probably because of cache, because it happens also when appending random suffix to the URL.
How to fix the damn thing? Situation is weird, as the URL's title and description is parsed fine.
Facebook doesn't scrape information from your website each any every time you share a link. Facebook saves a cached copy of the information on the Facebook servers.
When you click "Fetch new scrape information" it forces Facebook to ignore the cached information and scrape your website immediately.
It sounds like you (or somebody) may have tried to share your URL on Facebook earlier, which has returned an error. Facebook remembered this error until you forced it to fetch new information.
It's perfectly normal so I wouldn't worry about it. Facebook would have refreshed it's cache of your page sooner or later and fixed it.
I made a pdf ebook where I embeded a link to a youtube video I uploaded.
on youtube stats, it shows that my traffic source is unknown.
I know this is hurting the seo of my video. This is why I am trying to enhance my youtube seo by making the visitors who come from my pdf looks like comming from facebook.
I know this is called faking the referral but I don't know if this can be done through this way:
1 _ user click on the link embeded in the PDF.
2 _ the user get redirected to "myscript.com".
3 _ "myscript.com" will redirect the user to youtube.
4 _ youtube stats show traffic comming from facebook.
please, if you know anything about this, help me.
This isn't possible. You can fake the referrer in your own browser, but you can't force someone else's browser to fake it.
What your solution will do is show the referrer as being your own website. That may still be better than it seemingly coming from nowhere. But, on the other hand, it may not. I'm no expert on the way that Youtube SEO works. I suspect, though, that anything which attempts to deliberately manipulate it is likely to hurt rather than help you. Let your content be its own best advert.
If you're determined to go down this route, though, an alternative solution would be to set up a Facebook page and embed the video in that. Then make the Facebook page the destination of the link in the PDF. That way, the referrer for the video really will be Facebook.
Faking a URL isn't going to enhance your SEO. If you want to track traffic from that ebook, use UTM tagging in that embedded URL.
I'm not sure if this will be reflected in your YouTube stats, but should be easy to track in Google Analytics.
I'm done with searching all places on the net, but I cannot find a solution to this. I have written the code for Facebook share to share a post on Facebook using the Facebook sharer code. The &u and &t parameters for it are working fine, but I am unable to change the description for the same. The &p[summary] doesn't seem to work. here's my code:
<a
rel="nofollow"
href="http://www.facebook.com/share.php?s=100&u=<?php echo curPageURL();?>&&t=<?php echo $title;?>&p[summary]=<?php echo $desc;?>"
class="fb_share_button"
onclick="return fbs_click()"
target="_blank"
style="text-decoration:none;"
>Share</a>
From what I can tell Facebook's old sharer.php posting mechanism isn't supported anymore by Facebook. The old documentation link https://developers.facebook.com/docs/share/ auto redirects to https://developers.facebook.com/docs/reference/dialogs/feed/.
You can though use the Facebook debugger: http://developers.facebook.com/tools/debug
You won't be able to do this with Sharer, but you might be able to do this with Share Dialog. The only formats you may use for Sharer are...
https://www.facebook.com/sharer/sharer.php?u={url}
https://www.facebook.com/sharer.php?u={url}
The top format is the only format indicated by the Official Facebook Share Button Documentation. To test this out, click "Get Code" at the Facebook Share Button Configurator, and look at the generated URL.
So, no, you may not indicate a summary. However, if you use Share Dialog, you might be able to do this. That's right! Facebook has two API's for sharing! Why? Sharer only allows sharing a URL, and it is secure without requiring an AppId or registering with Facebook. Share Dialog requires an AppId and registering with Facebook, so, you're allowed to set something like quote there. See other options: Facebook Official Share Dialog Documentation.
The developers have also publicly come forward and said that they will not support anything but u={url} in Sharer. To quote the blog post by Ibrahim Faour, Facebook Team, April 24, 2014...
We have changed the behavior of the sharer plugin to be consistent with other plugins and features on our platform.
The sharer will no longer accept custom parameters and facebook will pull the information that is being displayed in the preview the same way that it would appear on facebook as a post, from the url OG meta tags.