简体   繁体   中英

Facebook Likes on pages within a page tab app

I'm building a page tab app on Facebook that allows users to create and display their own entries, and I want to be able to have a share and a like button specific to each entry.

I'm using the app_data parameter to pass the path to the page within the app, and it works perfectly with the share button - a user can share their entry to their wall, and that share links back to the appropriate page.

However, when I try to do the same thing with Likes, it instead shows the total likes for the page the page tab is a child of. Has anyone had a similar problem or could point me in the right direction to sorting it out?

Cheers!

You can't like specific page tab contents – Facebook will count all likes for the Facebook page, no matter what app ID and possibly app_data the URL contains.

You could however like your own URLs that are loaded inside the page tab frame – and have them redirect to themselves embedded into the iframe with JavaScript if a real user is visiting them.

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