bedita / bedita

BEdita, ready to use back-end API, extensible API-first Content Management
https://www.bedita.com
Other
67 stars 21 forks source link

Open Graph Metadata (for Facebook…) #376

Closed xho closed 10 years ago

xho commented 11 years ago

Open Graph metadata should be produced automatically by the BEFront helper. Maybe a specific method (i.e. metaOG).

For example, this URL: http://espn.go.com/espn/feature/story/_/id/9338962/when-beautiful-game-turns-ugly

produces the following OG metadata:

Meta Tag: Meta Tag: Meta Tag: Meta Tag: Meta Tag: Meta Tag: Meta Tag:

Use Facebook developer tool to debug URL: https://developers.facebook.com/tools/debug

didoda commented 10 years ago

Added method metaOg in beFront helper.

Tags handled: og:title, og:type, og:url, og:description, og:site_name, og:app_id, og:updated_time Tags to better or to handle: og:image, og:video, og:type (handle more types: http://ogp.me/#types)

Useful links:

http://ogp.me/ https://developers.facebook.com/docs/web/tutorials/scrumptious/open-graph-object/

Applied metaOg in example frontends: debug.example.com, dummy.example.com, html5.example.com, site.example.com, wp.example.com