Meta oEmbed Read — Live Integration

Embedding Social Content for Jhelum

ApnaJhelum.com uses Meta oEmbed Read 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 in Jhelum District 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 their public posts to help couples compare venues visually without leaving our site.

Community News

Local government pages, police stations, and community leaders post updates on Facebook. We embed these public announcements alongside our news articles for credibility.

Heritage & Tourism

Travel bloggers and tourism pages share beautiful content about Rohtas Fort, Tilla Jogian, and Khewra Salt Mines. We embed their posts on our heritage pages.

Live Embedded Content

Below are live examples of public Facebook and Instagram content embedded using the Meta oEmbed Read API through the Graph API endpoints.

Facebook — ApnaJhelum Page Public Post

Loading Facebook embed...

Instagram Photo — @jhelumi Public Photo

Loading Instagram embed...

Facebook — Meta Official Public Post

Loading Facebook embed...

Instagram Reel — @jhelumi Public Reel

Loading Instagram Reel embed...

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 the URL and our app access token.

3

HTML Returned

The API returns embed HTML which we sanitize, cache (24 hours), and store for rendering.

4

Rendered on Page

The embed HTML is output on the page and Meta's SDK renders the interactive embed widget.

Technical Details

API endpoints and configuration used in this integration.

Parameter Value
Facebook Posts Endpoint GET /v25.0/oembed_post
Facebook Videos Endpoint GET /v25.0/oembed_video
Instagram oEmbed Endpoint GET /v25.0/instagram_oembed
Authentication App Access Token (server-side)
Content Scope Public posts only — no private or restricted content
Caching Strategy Responses cached for 24 hours to reduce API calls
Website https://apnajhelum.com
Permission Required meta_oembed_read