Marcus Tan
Marcus Tan

Reputation: 417

PHP post particular content to facebook

I currently developing this website "http://mica.com.my/cmstest/main/event.php". I have few different content to be ready to post to facebook if user clicked the "Share" button. But when user click the share button it share the whole page which i don't wish to do that, how can i only share on the particular post's content to facebook but not the whole website page?

I had try to implement facebook api in it, but it still alway share the whole page instead of only the particular content to faccebook.

Please guide me through this. Thanks

Upvotes: 0

Views: 56

Answers (1)

Aryeh Armon
Aryeh Armon

Reputation: 2185

you need to add meta description to the header.

<meta name="og:description" content="this will be the description shared on facebook">

you can also use other meta data like image , url and title. you can see all the otions in the docs

Upvotes: 1

Related Questions