用户在查看前必须喜欢页面 [英] User must like page before viewing

查看:144
本文介绍了用户在查看前必须喜欢页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在这方面挣扎了很长一段时间,但我想我会重新审视这个问题。我的目标是做同样类型的事情这个facebook页面正在 https://www.facebook。 com / JimBeam?sk = app_140011936063255

I have struggled with this for quite some time now but figured I would revisit the issue. My goal is to do the same type of thing This facebook page is doing https://www.facebook.com/JimBeam?sk=app_140011936063255

他们已经做到这一点,以便用户在查看内容之前必须单击赞按钮。

They have made it so that the user must click the like button before reviewing the content.

我的正常程序是构建welcome.HTML页面,在fb上创建一个新应用程序,然后将页面分配给正确的业务。

My normal procedure is to build a welcome.HTML page, create a new app on fb, then assign page to the correct business.

我的问题是,如果我设计了一个新的html页面,让我们称之为pre-like.HTML,我会在哪里放入代码,以便此页面设计显示在用户能够看到欢迎页面吗?

My question is if I designed a new html page, let's call it pre-like.HTML, where would I drop in the code so that this page design displays prior to users being able to see the welcome page?

我想一旦点击了like按钮,它会将用户重定向到欢迎页面?我非常感谢你可以发送任何建议或好的教程。

I guess once the like button is clicked it would redirect users to the welcome page? I would greatly appreciate any advice or good tutorials you could send my way on doing this.

提前谢谢!!

推荐答案

我找到了这个信息为了你。 FACEBOOK SECRET隐藏在FAN PAGE UNTIL上的内容有人喜欢它

I found this information for you. FACEBOOK SECRET HIDE CONTENT ON FAN PAGE UNTIL SOMEONE LIKES IT


您需要在PHP文件的一部分中添加此项,以便为非显示不同的消息粉丝和粉丝。

you need to add this in the part of your PHP file you want to display a different message for non fans and fans.



 <?php

 $request = $_REQUEST["signed_request"];</p>
 <p>list($encoded_sig, $load) = explode('.', $request, 2);</p>
 <p>$fbData = json_decode(base64_decode(strtr($load, '-_', '+/')), true);</p>
 <p>if (!empty($fbData["page"]["liked"]))</p>
 <p>{ ?></p>
 <p>You are a fan - insert html here</p>
 <p><?php } else { ?></p>
 <p>You are not a fan - insert html here</p>
 <p>

 <?php } ?>

希望有所帮助!我强烈建议你点击我从中获取信息的链接,然后按照他的指示操作。这篇文章的日期是十月,所以我认为这可能是网上最新的信息。

Hope that helps! I strongly recommend you hit the link I sourced the info from and go follow his directions. The article is dated from October, so I think this might the most recent info out there on the web.

这篇关于用户在查看前必须喜欢页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆