Meta oEmbed Read — Live API Integration

Embedding Social Content for Jhelum

ApnaJhelum.com uses the Meta oEmbed Read API to embed public Facebook and Instagram posts, bringing local community content directly into our district portal for 500,000+ Jhelumites.

How We Use Meta oEmbed Read

We embed public social media content across several sections of ApnaJhelum.com to enrich the experience for our local community.

Business Directory

Local businesses share promotions and updates on Facebook & Instagram. We embed their latest public posts in directory listings so visitors see live content.

Wedding & Events Hub

Wedding venues and event halls showcase their setups via Instagram. We embed these in our upcoming Wedding Hub section for planning couples.

News & Blog

When covering local news and events, we embed the original Facebook/Instagram posts as primary sources alongside our articles.

Heritage & Culture

We embed posts from historical and cultural accounts that showcase Jhelum’s heritage sites, traditions, and community events.

Live Embedded Content

These embeds are loaded in real-time via the Meta Graph API oEmbed endpoints. Each embed below shows the API endpoint used and response status.

Facebook — ApnaJhelum Page Public Post

Calling Meta oEmbed API...

Instagram Photo — @jhelumi Public Photo

Calling Meta oEmbed API...

Facebook — Meta Official Public Post

Calling Meta oEmbed API...

Instagram Reel — @jhelumi Public Reel

Calling Meta oEmbed API...

How It Works — Technical Flow

1

URL Provided

A public Facebook or Instagram post URL is associated with a directory listing or article on ApnaJhelum.com.

2

Server-Side API Call

Our PHP backend calls the Meta Graph API oEmbed endpoint with our App Access Token (App ID + App Secret).

3

HTML Response

Meta returns embeddable HTML in the oEmbed response. We cache this server-side for 1 hour to reduce API calls.

4

SDK Rendering

The embed HTML is injected into the page, and the Facebook/Instagram JavaScript SDKs render the interactive embed.

ComponentDetail
Meta App ID1285416666828557
Permissionmeta_oembed_read
API Endpoints/v21.0/oembed_post, /v21.0/instagram_oembed
Auth MethodApp Access Token (server-side only)
BackendPHP 8.2 + cURL on Hostinger shared hosting
CachingFile-based, 1-hour TTL, server-side
Content EmbeddedPublic Facebook posts, Instagram photos & reels from Jhelum community