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.
How It Works — Technical Flow
URL Provided
A public Facebook or Instagram post URL is associated with a directory listing or article on ApnaJhelum.com.
Server-Side API Call
Our PHP backend calls the Meta Graph API oEmbed endpoint with the URL and our app access token.
HTML Returned
The API returns embed HTML which we sanitize, cache (24 hours), and store for rendering.
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.