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:
in which the "label" would automatically pop out in the map pin upon posting. But instead I always get this:
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?
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'.
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.
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.
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.
Have you tried this? I saw this while searching an answer for your question.
<!-- Begin Open Graph metadata -->
<meta expr:content='"en_US"' property='og:locale'/> <meta expr:content='data:blog.canonicalUrl' property='og:url'/>
<b:if cond='data:blog.pageType == "item"'>
<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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With