facebook api -> response code 206 -> an error occured - html

My error is -> an error occurred (not very helpful) when trying to do a basic Facebook app.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta charset="UTF-8">
<meta property="og:title" content="This Page Title">
<meta property="og:description" content="product">
<meta property="og:url" content="http://tpccommedia.com/fb_progs/redir.php?p=share">
<meta property="og:site_name" content="mySiteName">
<meta property="og:type" content="website">
<meta property="fb:app_id" content="229474487215744">
<meta property="og:image" content="http://telecom.com/images/nyclogo.png">
<title>Register</title>
</head>
<body>
Share This App!
</body>
</html>
The output from the Facebook debugger only indicates and response code of 206, which I understand is to be expected?
Scrape Information
Response Code 206
Fetched URL http://tpccommedia.com/fb_progs/redir.php?p=share
Canonical URL http://tpccommedia.com/fb_progs/redir.php?p=share
Object Properties
fb:app_id 229474487215744
og:url http://tpccommedia.com/fb_progs/redir.php?p=share
og:type website
og:title This Page Title
og:image
og:description product
og:site_name mySiteName
og:updated_time 1383429465
Raw Open Graph Document Information
Meta Tag <meta property="og:title" content="This Page Title" />
Meta Tag <meta property="og:description" content="product" />
Meta Tag <meta property="og:url" content="http://tpccommedia.com/fb_progs/redir.php?p=share" />
Meta Tag <meta property="og:site_name" content="mySiteName" />
Meta Tag <meta property="og:type" content="website" />
Meta Tag <meta property="fb:app_id" content="229474487215744" />
Meta Tag <meta property="og:image" content="http://nyctelecomm.com/images/nyclogo.png" />
URLs
Graph API https://graph.facebook.com/176103072585712
Scraped URL See exactly what our scraper sees for your URL
I am not in sandbox mode as indicated in other post.
What did I miss?

I think the issue here is with your link to "Share this App".
http://www.facebook.com/dialog/feed?app_id=1392552050964797&display=popup&caption=http://tpccommedia.com/fb_progs/redir.php?p=share
Make sure the app_id is correct (not a page Id) and that you have specified a redirect_uri as per the documentation.
https://developers.facebook.com/docs/reference/dialogs/feed/#redirect

Related

Why is my open graph image meta tag isn't working on Facebook?

This is the very first time I try to deploy something. Though the webpage is for testing purposes and not finished yet but I want to share it for my friend to see.
When I share my web with some of my friends, I can't see the open graph image
It just displays like this
I'm just trying to implement a very simple static open graph image, not the dynamic one.
Here's how I set up my head in the public/index.html of my React-app
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>Mirai</title>
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Watch anime"
/>
<meta name="mobile-web-app-capable" content="yes"/>
<meta name="application-name" content="Mirai"/>
<meta name="apple-mobile-web-app-title" content="Mirai"/>
<meta property="og:title" content="Mirai"/>
<meta property="og:description" content="Watch free anime"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://mirai-huy8856.vercel.app/">
<meta property="og:image" content="https://s4.anilist.co/file/anilistcdn/media/anime/banner/101922-YfZhKBUDDS6L.jpg"/>
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
</head>
Here's my VERCEL App, I've View Source and saw that it has og meta tag in there, but Facebook refuses to read the image, what have I done wrong?
Here's the Image I tried to implement.
This is my folder structure in the ReactJS application.
You can test your OpenGraph settings on the Facebook Debugger here:
https://developers.facebook.com/tools/debug/
It is worth noting with OpenGraph Image data you should supply additional data; namely:
<meta property="og:image" content="https://s4.anilist.co/file/anilistcdn/media/anime/banner/101922-YfZhKBUDDS6L.jpg"/>
<meta property="og:image:type" content="image/jpeg" >
<meta property="og:image:width" content="1800" >
<meta property="og:image:height" content="550" >
Further; looking at the page you give on your metadata OpenGraph URL tag
https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Fmirai-huy8856.vercel.app%2F
The de-bugger states:
Missing Properties
The following required properties are missing: fb:app_id

I set og:type with 'article' but why og type always show on default 'website'

I have a problem with og: type facebook. i already set meta og: type to 'article', but still detected og: type it is 'website'.
However, everytime I try to scrape again, og: type changes to 'article'. So, there's no way I should do manual scrape every time a post.
This is my code:
<meta property="og:url" content="https://jpnn.dev/news/pdip-usung-jenderal-berbadan-besar-jadi-cagub-maluku"/>
<meta property="og:title" content="PDIP Usung Jenderal Berbadan Besar jadi Cagub Maluku"/>
<meta property="og:description" content="Bu Megawati bercanda, menyebut sang jenderal sedang cari kerjaan karena sudah mau pensiun."/>
<meta property="og:image" content="https://photo.jpnn.com/arsip/normal/2017/05/21/25841e2eda0d3bbe198b1f9e6662a8c0.jpg">
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="400" />
<meta property="og:image:height" content="250" />
<meta property="og:locale" content="id_ID"/>
<meta property="og:type" content="article"/>
<meta property="og:site_name" content="www.jpnn.com"/>
<meta property="og:ttl" content="345600"/>
<meta name="Facebot" content="index,follow" />
<meta name="pubdate" content="2017-12-17T14-22-00Z" itemprop="datePublished" />
<meta content="2017-12-17T14-22-00Z" itemprop="dateCreated" />
<meta property="article:author" content="53788620694"/>
<meta property="article:publisher" content="53788620694"/>
<meta property="article:section" content="politik"/>
<meta property="article:published_time" content="2017-12-17T14-22-00Z"/>
<meta property="article:tag" content="Murad Ismail"/>
<meta property="article:tag" content="Pilgub Maluku 2018"/>
<meta property="article:tag" content="PDIP"/>
And this is the result:
Result
Error
What's wrong with my code ?
Help me please :(
Thx
The type of article:author is profile, not string.
Which, means the value must be a URL to a web page with Open Graph profile markups (like a Facebook profile page, but not necessarily Facebook.).
I used https://developers.facebook.com/tools/debug/og/object/ and it showed me an alert like this:
Object at URL 'http://example.com/post/' of type 'article' is invalid
because the given value 'Your awesome name' for property
'article:author' could not be parsed as type 'profile'.
Then I found this answer on Stack Overflow:
article:publisher is for Facebook pages, article:author is for
individuals.
Whose question points to this Facebook blog post (from 2013/06/19):
Today we're introducing updates to two tags:
article:publisher lets a publisher link an article to their own
Facebook page. When the article is shared in News Feed, a "like"
button is displayed so people can like the publisher page.
<meta property="article:publisher" content="https://www.facebook.com/cnn" />
article:author lets a publisher link an article to the Facebook
profile of the author. When the article is shared in News Feed, a
"follow" button is displayed so people can follow the author. The
author needs to have Follow activated on his or her profile for this
button to appear.
<meta property="article:author" content="https://www.facebook.com/fareedzakaria" />
In your case, I believe you should replace:
<meta property="article:author" content="53788620694"/>
<meta property="article:publisher" content="53788620694"/>
by:
<meta property="article:author" content="https://www.facebook.com/gilang.sonar"/>
<meta property="article:publisher" content="https://www.facebook.com/jpnncom/"/>

Facebook not showing open graph preview (static html5 on amazon s3)

I want to share this link (https://s3.eu-central-1.amazonaws.com/lavorotrentino/index.html) through a Facebook status.
The problem I'm facing is the missing facebook preview that should be based on the meta tag info in index.html:
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns#" lang="it">
<head>
<meta http-equiv="Content-Type" content="text/html charset=utf-8" />
<link rel="canonical" href="https://s3.eu-central-1.amazonaws.com/lavorotrentino/index.html" />
<link rel="image_src" href="https://s3.eu-central-1.amazonaws.com/lavorotrentino/abc.jpg"/>
<title>Lavoro in Trentino</title>
<meta property="og:title" content="Lavoro in Trentino" />
<meta property='og:site_name' content='LIT' />
<meta property="og:description" content="Nuove opportunità pubblicate oggi sul portale dell'Agenzia del Lavoro trentina."/>
<meta property="og:type" content="article" />
<meta property="og:url" content="https://s3.eu-central-1.amazonaws.com/lavorotrentino/index.html" />
<meta property="og:image" content="http://s3.eu-central-1.amazonaws.com/lavorotrentino/abc.jpg" />
<meta property="og:image:secure_url" content="https://s3.eu-central-1.amazonaws.com/lavorotrentino/abc.jpg" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="400" />
<meta property="og:image:height" content="400" />
</head>
I tried to find the problem with the Open Graph Object Debugger but it seems like the tags are ok:
Facebook Object Debugger result:
.
The message warning:
"fb:app_id hasn't been included in the meta tags. Specify the app ID so that stories shared to Facebook will be properly attributed to the app. Alternatively, app_id can be set in url when open the share dialog. Otherwise, the default app id( 966242223397117 ) will be assigned."
should not be a problem for simply sharing a link.
Are there issues with the amazon s3 free 1 year trial?
Turns out to post using open-graph you do need an appID. It was easy to make.
https://developers.facebook.com/docs/opengraph/getting-started#create-app

what meta i need to set to let line app get my thumnail image when share website?

Example , facebook depend on meta info:
<meta property="og:title" content="{{$heading}}"/>
<meta property="og:type" content="article"/>
<meta property="og:description" content="{{$tip_info}}"/>
<meta property="fb:app_id" content="{{Config::get('facebook.app_id')}}" />
<meta property="og:url" content="{{$url}}"/>
<meta property="og:image" content="{{$photoLink}}"/>
<meta property="og:site_name" content="vivo"/>
But in line app (http://line.me/en/), when i share link website, it only parse text and not receive any thumbnail image althougt website have many image.
They use Facebook Open Graph
<meta property=”og:image” content=”http://static.naver.jp/line_lp/img/ogp.png”>
<meta property=”og:title” content=”LINE : Free Calls & Messages”>
<meta property=”og:description” content=”LINE is a new communication app”>
Search for How are the URL previews in chats and on Timeline generated?
on the Line Faq link: https://developers.line.me/en/faq/
and refer to this blog article
I send the structure of the meta tag:
<head>
<meta charset="UTF-8">
<meta name="description" content="Free Web tutorials">
<meta name="keywords" content="HTML,CSS,XML,JavaScript">
<meta name="author" content="Hege Refsnes">
</head>
just want to make people who see here note:
the content of og:image, which is the url, must need to be static, that means
start with
https://.......
not
/......
since the crawler of the SNS will not know where you save the thumbnail

OG Meta Tags (Facebook Sharing): How to scrape from one site, but link to another?

I'm trying to make a Facebook share button that links to one webpage, but pulls OG metadata from a separate webpage. Is this possible? This is what I have tried so far:
<html prefix="og: http://ogp.me/ns#">
<head>
<title>Your Website Title</title>
<meta property="og:title" content="Title" />
<meta property="og:type" content="Article" />
<meta property="og:image" content="https://pbs.twimg.com/profile_images/378800000615328448/3f4d11442e83bb34f90124b64b8ee57b.jpeg" />
<meta property="og:description" content="Description" />
<meta property="og:url" content="https://www.facebook.com"/>
</head>
<body>
Sample Text
</body>
</html>
As of now this only pulls meta data from Facebook, and not from this HTML doc. What am I doing wrong?