How to retrieve Facebook post (preview) meta data for linking to external site, such as LinkedIn or Google Plus?
NickName:ryd3r Ask DateTime:2015-06-11T07:51:19

How to retrieve Facebook post (preview) meta data for linking to external site, such as LinkedIn or Google Plus?

I'm trying to link to individual Facebook posts and display the post page's meta data, including an image preview, but looking at the FB post page's source, it has none of the usual meta nor open graph tags.

I found that LinkedIn and Google Plus are able to retrieve meta data when you post a link to a facebook post. See below for a LinkedIn example.

How are they doing it!?

enter image description here

Copyright Notice:Content Author:「ryd3r」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/30769269/how-to-retrieve-facebook-post-preview-meta-data-for-linking-to-external-site

Answers
folizc 2015-06-16T07:13:14

I'm not insider of LinkedIn or Google so not sure of it. But there're two ways they can do it:\n\n\nAnalysing the structure of facebook post and fetch the picture/title/content of post from url.\nFetch post id of the post (fbid), and use graph api to query the details of the post from facebook.\n",


More about “How to retrieve Facebook post (preview) meta data for linking to external site, such as LinkedIn or Google Plus?” related questions

How to retrieve Facebook post (preview) meta data for linking to external site, such as LinkedIn or Google Plus?

I'm trying to link to individual Facebook posts and display the post page's meta data, including an image preview, but looking at the FB post page's source, it has none of the usual meta nor open g...

Show Detail

OpenGraph meta for facebook, linkedin and twitter

I'm trying to make sure that when my website is shared the correct meta information is displayed. I thought I had it working but I'm experiencing a few issues on different social websites, as follo...

Show Detail

LinkedIn not updating link preview Open Graph data

I'm trying to post a link to LinkedIn. Once the link is typed/pasted, a preview appears. This preview is supposed to draw properties such as the thumbnail image, title, description, and URL from Open

Show Detail

LinkedIn and google plus share successful callback

I got callback after share successfully with Facebook and Twitter. Is it possible with Linkedin and Google Plus? Google Plus Share : href="https://plus.google.com/share?url={URL}" Linkedin Shar...

Show Detail

Sharing via Twitter, Facebook, LinkedIn, and Google Plus

I would like a section where users can share a certain link on different social media platforms from our app. I have the twitter link working properly but Facebook, LinkedIn, and G+ are only sharin...

Show Detail

How to retrieve meta data for share from Wikipedia?

There is an Open Graph Meta Tag to share via SNS. I know that Open Graph is usually used for sharing. But, I can not find Open Graph Meta Tag from Wikipedia articles. But, I tried to share Wikipedia

Show Detail

Open graph description meta tag is not working in LinkedIn

As per this article, LinkedIn is supporting open graph meta tags for link preview. I have added all required meta tags in the head section of my HTML page. ie. <!DOCTYPE html> <html lan...

Show Detail

URL for sharing a LinkedIn post

What is the URL structure for directly linking to a LinkedIn post. On the site itself there is no option to link to a post directly, only to share one of Twitter or Facebook. I've tried sharing a p...

Show Detail

Linkedin Share URL preview not showing correctly?

I need to share dynamically created URLs in website to Facebook and LinkedIn. I am sharing to Facebook properly and all needed og tags have been set. But for LinkedIn, it is not working. This is m...

Show Detail

customize share text for G+, FB, and LinkedIn, WITHOUT using OG meta tags

Twitter has a beautiful share API. If I want to customize text, I just include it in the URL I'm linking to: <a href="https://twitter.com/share" class="twitter-share-button" data-text=...

Show Detail