I am trying khổng lồ get a post from a company Facebook page.The link is for an application i developed that feeds of information from another applications database that uses the Facebook API.

Bạn đang xem: How to quickly find a facebook post id

i want to lớn create a links eg www.facebook.com/postID that will take me to lớn the specific post.I have tried numerous articles and all seem to lớn send me khổng lồ a 404 page. Please help.



My Application uses the facebook api that accepts data related khổng lồ a facebook page nội dung (i.e posts,photo"s,statuses etc).part of the api is that it saves the actual post id pertaining to lớn a post for e.g. 302961133120433_576487772434433 inlớn my applications database.As you may see that the post id has 2 parts separated by an underscore.So i needed to make a url based on this post id.

Solution for the link is:(2 parts of it,first being page id and second being actual post id)

Hope this helps.

Xem thêm: Tạo Intro Cho Video Online Miễn Phí (Đơn Giản Mà Đẹp), Bật Mí: Tạo Intro 3D Online Miễn Phí Với Website


You have facebook API doc on post here : https://developers.facebook.com/docs/graph-api/reference/v2.8/post

the URL you want is called "permalink_url" as field name, so the API điện thoại tư vấn lớn get that links is in this format:URL = "https://graph.facebook.com/v2.8/" + postId + "?fields=permalink_url&access_token=" + facebookToken

Here is a screenshot for my testing in FB API explorer.



If you want khổng lồ get a các mục of posts on IDs on a particular page, it doesnt seem to be documented but this works:



Thanks for contributing an answer khổng lồ Stachồng Overflow!

Please be sure khổng lồ answer the question. Provide details & share your research!

But avoid

Asking for help, clarification, or responding khổng lồ other answers.Making statements based on opinion; baông chồng them up with references or personal experience.

Xem thêm: Tải Video Lên Youtube, Cách Đăng Video Lên Youtube Nhanh Nhất

To learn more, see our tips on writing great answers.

Post Your Answer Disthẻ

By clicking “Post Your Answer”, you agree to lớn our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged facebook facebook-graph-api facebook-javascript-sdk or ask your own question.


site design / hình ảnh © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.5.10.39252

Your privacy

By clicking “Accept all cookies”, you agree Staông chồng Exchange can store cookies on your device và discthua thảm information in accordance with our Cookie Policy.

Chuyên mục: Kinh doanh online