Hi Team,
We are currently facing an issue with Facebook post data being extracted via the API. While we are successfully retrieving the permalink_url for posts, the actual content received is in plain text format. This means any hyperlinks included in the original Facebook post are not preserved in the API response.
For example, there are several posts that contain what appear to be mentions in the form of embedded hyperlinks. However, when we fetch this data via the API, these links are not returned, only the plain text is. This behavior seems to be consistent across multiple Facebook posts we have reviewed.
Example:
Original Facebook post content (as it appears on the platform):
Check out our partner @CoolBrand for the latest updates!
API response:
{
"message": "Check out our partner @CoolBrand for the latest updates!"
}
As you can see, the hyperlinked mention (@CoolBrand) is returned as plain text, and the actual link (https://www.facebook.com/coolbrand) is missing from the response.
From what we have observed:
1. If a hyperlink is applied to text within the post (example, a clickable name or phrase), the API does not return that link.
2. Only raw, unformatted text is retrieved.
3. As a result, we are unable to accurately detect and extract mentions based on hyperlink references.
If the API supported hyperlink extraction within the content, we could programmatically identify and process these as mentions. Without it, however, we have no reliable way of identifying them.
Has anyone else encountered this limitation, or is there a known workaround to retrieve these hyperlink-based mentions from Facebook post content via the API?
Any help will be greatly appreciated.
Thanks in advance.
