I try to share some article at Facebook (without creating fb social app).
The header of file what I feed to https://www.facebook.com/sharer/sharer.php is following:
<meta property="og:type" content="article" />
<!meta property="og:url" content="url to some website" />
<meta property="og:title" content="Title" />
<meta property="og:image" content="url to image" />
<meta property="og:description" content="some description" />
The problem is - each time when i try to set og:url, title, image and description catches up from "url to some website" and suppress values that I typed explicitly here! Also og:type property changes from "article" to "website".
How can I fix this problem? Does I need to create fb social app for this?
I don"t know exactly what you want, but og:url basically ignores any other parameters you gave to the header.
You'd better check this :)
https://developers.facebook.com/docs/plugins/share-button
Related
I am trying to share on facebook but didn't get meta data. Also i have try in facebook debug tool but didn't get meta data.
facebook debug tool url https://developers.facebook.com/tools/debug/
I have already added meta data. Bellow meta data and url.
<meta property="og:title" content="Afrocamgist" />
<meta property="og:type" content="article" />
<meta property="og:image" content="https://www.afrocamgist.com/public/campus_post/Screenshot_20180815-132503.png" />
<meta property="og:description" content="Good morning famz!" />
<meta property="og:url" content="https://www.afrocamgist.com/" />
<meta property="og:site_name" content="Afrocamgist" />
<meta property="fb:app_id" content="300434940539027" />
URL : https://www.afrocamgist.com/post/single/434
Please help me. Thanks.
Solve issue, Actually problem with protected page. My page is open after user login.
I have a remove permission and publish to solve my issue.
Thanks.
So I have this cakephp project, when I share the link to facebook i don't get og:description, og:image etc, even though everything seems to be there.
My code: (Views/Layouts/default.ctp)
<head>
...
<meta property="og:url" content="<?=Configure::read('og_url');?>landing" />
<meta property="og:title" content="<?=Configure::read('app_title');?>" />
<meta property="og:description" content="<?=Configure::read('og_description');?>" />
<meta property="og:image" content="<?=Configure::read('og_image');?>" />
...
</head>
I initialize everything in bootsrap.php so all my files can have access to these values.
Which produces this, View Page Source:
<head>
...
<meta property="og:url" content="https://www.philippidescompetition.com/landing" />
<meta property="og:title" content="Back To School Spin & Win! " />
<meta property="og:description" content="Συμπλήρωσε τα στοιχεία σου και παίξε "Spin & Win"!" />
<meta property="og:image" content="https://www.philippidescompetition.com/img/wheel/og_image_s.jpg" />
...
</head>
So far so good, but when I share the link on facebook I don't get any of the meta data.
I tried the debugger tool, but it didn't really help.
I want to share philippidescompetition.com/landing this link, which redirects to the facebook app page or to the actual url philippidescompetition.com/users/register on my server, according to if its from a desktop or mobile, so am thinking this redirect causes the issue, but if I share philippidescompetition.com/users/register which doesn't have a redirect, all meta data are still empty
Any ideas?
You need to add an exception to your automatic redirect for the Facebook scraper.
It can be recognized by its User-Agent, see https://developers.facebook.com/docs/plugins/faqs#faq_1748179212062572
Thanks in Advance . Here am trying facebook share functionality ..It works .. But image of the page not showing while sharing.
<i class="fa fa-facebook"></i>
If anybody Knows about that means Give a advice .
If you are facing error for showing the thumbnail of page please ensure you are using the og tags. og tags tell facebook which photo need to place on post thumb and what should be the description for that.
It will go like this:-
<meta property="og:url" content="www.yoursiteurl/page.com" />
<meta property="og:type" content="Website name" />
<meta property="og:title" content="Put the title here" />
<meta property="og:description" content="Give a long description here" />
<meta property="og:image" content="www.yoursite.com/urpicurl" />
I have a problem with the recognition of the tag og:image in my site.
This is the code generated in my php app
<meta property="og:title" content="Fondazione dell'ordine degli psicologi dell'abruzzo onlus" />
<meta property="og:type" content="article" />
<meta property="og:image" content="https://www.ordinepsicologiabruzzo.it/images/img_jolly.jpg" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="243" />
<meta property="og:image:height" content="227" />
<meta property="og:url" content="https://www.ordinepsicologiabruzzo.it/news/in-primo-piano/fondazione-dell-ordine-degli-psicologi-dell-abruzzo-onlus.html" />
<meta property="og:site_name" content="Ordine degli Psicologi della regione Abruzzo" />
But in the facebook debugger tool the image is not taken quickly and fb advice me to use og:image:width and og:image:height but... these tags are here!
I have tried using the http (and not https) version of the site but is the same.
The website is: www.ordinepsicologiabruzzo.it and a lot of pages are just correctly scraped.
Any ideas?
Your website is not currently declaring og-image in the head. You can see this by visiting your site and viewing source. You'll notice that some of your OpenGraph tags are also missing their content value, including og-image:type, og-image:width, og-image:height.
If you check Facebook's Developer tools, you will be told the same thing, that you are missing og-image.
Add the og-image tag, and just use // for the beginning of content link.
<meta property="og:image" content="//ordinepsicologiabruzzo.it/images/img_jolly.jpg" />
I have to customize the elements displayed in the facebook personal page after publishing the like made to a post on a website.
I see that image, title and links are displayed but i have to display the post description too.
I've read, following some "Questions that may..." that i should use the Open Graph API but i would do the simplest solution ever to include the "description". If i could use the basic solutions offered by Facebook it would be a better solution.
Any suggestions?
You have to use the Open Graph API headers in the HTML page of your posts. E.g. in any post page from your website you have to add something like this in your HEAD section
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Site name" />
<meta property="og:title" content="Title" />
<meta property="og:description" content="Some description" />
<meta property="og:image" content="..." />