简体   繁体   English

页面标签应用内页面上的Facebook点赞

[英]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. 我正在Facebook上构建一个页面选项卡应用程序,该应用程序允许用户创建和显示自己的条目,并且我希望能够具有针对每个条目的共享和赞按钮。

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. 我正在使用app_data参数将路径传递到应用程序内的页面,它与共享按钮完美配合-用户可以将其条目共享到自己的墙上,然后将链接共享回到适当的页面。

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. 您无法喜欢特定页面标签的内容–无论URL包含什么应用ID和app_data,Facebook都将对Facebook页面的所有喜欢计数。

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. 但是,您可能希望将自己的URL加载到页面标签框架中-如果真实用户正在访问它们,则可以使用JavaScript将其重定向到嵌入到iframe中的URL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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