-
-
Notifications
You must be signed in to change notification settings - Fork 2
9.3 Metadata & Social Rich Cards
DA edited this page May 3, 2019
·
29 revisions
Every application deserves to be promoted the proper way. This framework provides you with out-of-the-box features that can help you define proper Metadata for your application that can be automatically turned into rich cards when shared on social platforms such as Facebook, LinkedIn, Pinterest or Twitter.
This framework provides you with a core helper method that can help you define the metadata properties properly.
The metadata()
core method can be used in the context of a Controller
or a View
.
metadata(array(
'site_name' => 'Your Site Name',
'site_url' => 'http://your-app-url',
'title' => 'Title',
'description' => 'this is a description',
'creator' => 'Your name',
'image' => 'http://url-to-the-site-banner',
'amount' => 0,
'currency' => 'USD',
'shipping_costs' => 0
));
Rich cards result can be tested from a public host and not using your local server unless your machine is publicly accessible. You could use the Facebook debugger or the Google rich results tester.
- facebook: facebook debugger
- google: google rich results test