captive portal - allow internet access after facebook like - facebook

I want to create a captive portal ( if possible in dd-wrt ) that has an open wifi network. When someone connects he gets a pop-up page that asks him to like a facebook page. If he likes ( or even better checks-in ) then the captive portal would allow full internet access. Any suggestions - ideas?

Related

Use facebook smartphone App to login in Captive Portal auth page

Is there a way to use mobile apps Facebook (Apple, Android, etc ...) to automatically authenticate users who wish to use social access for the Captive Guest-Wifi portal or similar services?
I worked with the standard social login authentication module of the standard captive portal which intercepts the first call of the operating system (Captive Portal Assistant) or the standard browser (Chrome, Safari, FF, etc ...), but this means that a user must know his credentials.
It could be easier to use the App where the customer is already logged in...
thanks!
I need to authenticate the facebook user not to only open Facebook App.
To do it, check this link - Facebook Login for Android out. It would help you.
Also, in this question - Making facebook login work with an Android Webview there is a method to create a Facebook login button with their javascript API.
The problem that you may face is "Android captive portal's splash page limitation". The splash page has a lot of limitations on js codes.
After that, if you faced this kind of problem, create a redirect page for the splash page and on the redirected page, you can do anything you want as a normal web page.

How to display a page when user connect to a wifi

I want to display a local web page when a user connects to my wifi. like a captive portal that when a user connects to the network, his device (i.e. android os) automatically detect that the network requires the user to sign in. I know, that I can set up a captive portal for this, but is there any easier way to do this?
Captive Portal is the only way (and/or by other ways specified by the creator of the network hardware). There are some nice open source captive portals:
https://packetfence.org/
If you want to research more you'll need to look up more about: Network Access Control (NAC)

Where can I find Facebook Wifi service specifications?

I'm trying to implement Facebook Wifi Checkin using a Raspberry Pi.
I'm using CoovaChili to catch user and redirect to my captive portal and everything is working great.
I tested some wireless routers that provide Facebook Wifi and they redirect me to this page, https://www.facebook.com/wifiauth/config?gw_id=NUMBER when I need to configure Facebook Wifi.
How can I generate this gw_id number?
I think there I need to register the client (raspberry pi) at facebook and get this number then I use this number to associate with some Facebook Page and then get checkin when someone try to connect to Internet.
I can't find any page, anywhere saying something about this gw_id number.
Thank you.

connect to internet if users like my website

I am building a guest wireless access for a pub. The idea is that users will be granted with internet access if they like they pub's website.
Now I was checking the requirements on facebook to check this and I found this:
Gate access to your app, or some content within your app based on
whether or not someone has liked a page.
NOTE: facebook wifi is not a solution for me hence I am using ubiquiti unifi AP
Does it means that I can't read if my clients like my page in order to allow them to use my wifi? is there a way around it?
If that's the solely purpose of the user_likes permission for your app you will very likely not pass the Login Review process.

How to check WiFi is pass through web page login?

I need to check WiFi is pass through web page login or not, but I don't know how to do.
So I need someone can help me or explain how to wifi via web page login. thanks.
On Android: You can implement your own RedirectHandler and then use it in an HttpClient to hit a website that should never be redirected. If you get redirected then this access point is likely a walled garden (no access to the internet, without further steps). After that you are unlikely to be able to simply log in for the user programmatically, since the user could be anywhere and may need to pay to use the internet: hotel, airplane, coffee shop. Instead the best course of action is to inform the user with a dialog that they will need to perform additional steps to reach the internet using the Wi-Fi access point they are currently connected to and then allow them to easily open the web browser to a website that will trigger the redirect such as www.google.com. I know this solution works because I've implemented it myself before.
On iPhone this probably isn't necessary since the iPhone already detects walled garden Wi-Fi access points as soon as the user connects to them and shows the browser. If the user fails to connect to the internet the iPhone disconnects the user from the Wi-Fi access point.