Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tagging of Place in Facebook Open Graph doesn't show the label on the map pin

I was trying to tag a place via Open Graph in a cross platform posting. I have here a code of what i did:

$param['access_token'] = '<VALID ACCESS TOKEN>';
$param['place'] = 'https://foursquare.com/v/lifebit-hq/50d09677e4b019c8164dd068';
$facebookClient->api('/me/<APP_NAMESPACE>:<ACTION_TYPE>', 'POST', $param);

My expected output would look like this:

enter image description here

in which the "label" would automatically pop out in the map pin upon posting. But instead I always get this:

enter image description here

no labels where attached. The label will only show when I hover the mouse onto the pin.

Here's my Custom Open Graph Configuration:

Object Type: Daycard (with a custom 'location' GeoPoint Property field)
Action Type: Visit
Attachment Layout: Map
Highlighted Points: daycard:location

Here's my Open Graph Meta Tags for tagging of places

<meta property="<APP_NAMESPACE>:location:latitude"  content="7.075569"> 
<meta property="<APP_NAMESPACE>:location:longitude" content="125.61214">

Any thoughts of what might I have missed?

like image 348
jhnferraris Avatar asked Oct 04 '13 03:10

jhnferraris


People also ask

How do you add a tag to an open graph on Facebook?

Click on 'Social'. Click on the 'Facebook' tab. Toggle the 'Add Open Graph meta data' switch. To enable the feature, toggle the switch to 'On'.

How do you add meta tags to Open Graph?

Just go to Page Settings > Social Image > Upload. If you need to add other OG tags and customize the default settings, go to Page Settings > Advanced > Page Header Code Injection. Read the following section on adding the tags manually and copy-paste the code there.

How do you add meta tags on Facebook?

Go to your business account settings, in the "Brand Security" section, click on Domains. Click Add, enter a domain, and click Add Domain. Click on the added domain and go to the “Meta Confirmation” tab. Select the option to validate your domain using a meta tag.

How do you check meta tags on Facebook?

To see how your markup appears to the Facebook Crawler enter a URL into Sharing Debugger. It will show which meta tags the crawler scrapes as well as any errors or warnings. The debugger also triggers a scrape of your page, so if you do have errors in your HTML you can use the debugger to update your content.


1 Answers

Have you tried this? I saw this while searching an answer for your question.

<!-- Begin Open Graph metadata --> 
<meta expr:content='&quot;en_US&quot;' property='og:locale'/> <meta     expr:content='data:blog.canonicalUrl' property='og:url'/> 
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<meta expr:content='data:blog.pageName' property='og:title'/>
<meta content='article' property='og:type'/>
</b:if> 
<meta expr:content='data:blog.title' property='og:site_name'/> 
<b:if cond='data:blog.postImageThumbnailUrl'>
<meta expr:content='data:blog.postImageThumbnailUrl' property='og:image'/>
<b:else/>
<meta content='URL-FOR-IMAGE-YOU-WANT-TO-USE-IF-THERE-IS-NOT-A-THUMBNAIL-PHOTO-IN-THE-  POST' property='og:image'/>
</b:if> 
<b:if cond='data:blog.metaDescription'>
<meta expr:content='data:blog.metaDescription' property='og:description'/>
<b:else/>
<!-- Still looking for a way to use the post snippet if there's no description -->
</b:if>
<!-- End Open Graph metadata -->

View the entire article

like image 84
Sachith Perera Avatar answered Oct 13 '22 17:10

Sachith Perera