Facebook 粉丝专页“赞”停留在 Fangate 页面而不是移动到 Wall
期望的行为:使用粉丝页面顶部的“赞”按钮后,我希望将用户发送到留言墙。
当前行为:用户保留在 fangate 页面(设置为我的粉丝页面的默认登录页面的自定义选项卡)。
据我所知 这里还有一个问题,如果有人使用页面顶部的按钮,我无法控制在某人“喜欢”我的页面后触发的事件。
然而,我去过一些粉丝页面,它们确实有我想要的行为。我只是不明白他们是怎么做到的。示例:StrongMail 的 Facebook 粉丝页面
编辑:添加信息 - 我们为 Fangate 使用 iframe(以防万一)相关的)
Desired Behavior: After using the Like button on top of my fan page, I want the user to be sent to the Wall.
Current Behavior: The user remains on the fangate page (custom tab that is set as the default landing page for my fan page).
From what I can tell from another question here, I can't control events that trigger after someone "Likes" my page if they use the button on top of the page.
However, I've been to some fan pages that DO have the behavior I want. I just can't figure out how they did it. Example: StrongMail's Facebook Fan Page
EDIT: Added information - We use an iframe for the Fangate (in case that's relevant)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编辑:如果您想显示某些内容而不是挂在墙上,请在隐藏内容的顶部创建一个绝对定位的
div
,并在喜欢时隐藏div
。如果您使用 C# ASP.Net,我在使用此技术时从未遇到过问题。您可以检查
signed_request
并使用JObject
进行解码,然后根据需要进行重定向。看看这个:如何解码 OAuth 2.0 用于 C# 中的 Canvassigned_request?
您需要从此处下载并引用 JSON.Net:Json.NET
在页面加载上:
这里的解码有效负载函数:
EDIT: If you want to show certain content instead of going to the wall, make an absolute positioned
div
on top of your hidden content and hide thediv
when it's liked.If you're using C# ASP.Net, I've never had an issue using this technique. You can check for the
signed_request
and decode usingJObject
and then redirect as you need.Check this out: How to decode OAuth 2.0 for Canvas signed_request in C#?
You'll need to download and reference JSON.Net from here: Json.NET
On the page load:
The decode payload function here: