简体   繁体   中英

Add a like button for a single facebook page timeline post on an external website

I'm trying to implement a Facebook page timeline in a website with the open graph API from Facebook:

https://graph.facebook.com/{PAGEID}/posts?access_token={accessToken}&limit=5

This gives my a nice array of timeline objects. Per post I would like a like button for that specific single post. Does anyone know how to do this with PHP? I can't find any documentation about this 'like functionality' on the facebook developers site.

您可以选择所需职位的职位ID,然后向“ https://graph.facebook.com/OBJECT_ID/likes ”发出职位请求以获取更多信息,请访问: https : //developers.facebook.com / docs / reference / api / publishing /要进行测试,您可以访问: https : //developers.facebook.com/tools/explorer?method=POST

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM