We are implementing a review system in our app and pulling Yelp, Facebook reviews for certain businesses from their respective pages.
With Yelp a permalink is included in data for each review so that we link back the user to the Yelp page.
We want to do the same with Facebook (Single View that lists Yelp and Facebook reviews for the business - the only problem is we are unable to get the permalink for the review from Facebook Graph API Data.
Found a Facebook Developer Community question requesting the same (asked 4 months ago) but no answer till date.
Is there any way that a Facebook Page Review's permalink can be obtained?
Any help is greatly appreciated.
After a lot of googling and digging through docs and forums, we couldn't find a way to get the link from API data.
As a workaround, the URL(permalink) can be constructed from review data.
https://facebook.com/ + review_object.id
So from graph API data, it would be - open_graph_story.id
NOTE: This approach would break if Facebook decides to change the URL structure in the future. So, be mindful of changes by Facebook.
Answer Credits: Kalidas M, my teammate.