Author Topic: captive portal with facebook like  (Read 2644 times)

paranoio

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
captive portal with facebook like
« on: August 06, 2014, 08:19:57 am »
Hi
i just installed zentyal 3.4 and have everything working (nice job zentyal developers, it was really easy)
so now i want to change the captive portal login for a "facebook like button"
is this posible ?

if i create a "captive portal exception" for facebook (to allow the like action) it will give full access to facebook allowing users to skip the "like" rigth ?

i want the users to be forced to like my facebook page to get internet access,

hope you guys can give me some advice ..


paranoio

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: captive portal with facebook like
« Reply #1 on: August 10, 2014, 09:13:54 am »

Well i got a basic html to show my facebook "like button"
with javascript listeners working to catch the like action.

facebook is tricky for localhost so i had to create a local.html to
load an online.html (wich contains the facebook like button)

so next steps are :

-allow captive portal "login.mas" to load "online.html" using an iframe

- find a way to make cross-domain javascript calls to make the like button listener to submit the captive portal login form


how can i set exceptions (facebook and my domain) so the captive portal login page can show the http://mydomain.com/online.html  ?










paranoio

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: captive portal with facebook like
« Reply #2 on: August 19, 2014, 01:08:30 am »
well , i haven't find time to continue
but i did find facebook already offers this solution and they dont use "like" instead they use "check in"

i guess it is some of those "good practice" so no service should be exchange for a like ??

and therefore thats why im struggling so much to get a like-for-access ?



paranoio

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: captive portal with facebook like
« Reply #3 on: August 24, 2014, 07:01:22 am »

i found this
https://forum.openwrt.org/viewtopic.php?id=51214

the difference is that the user in that thread asks facebook users to access his app  when im trying to
get a like,
the problem with likes is that i have to use iframe otherwise the button does not work.

how can i allow users unrestricted access to facebook before doing the captivePortal login in zentyal (as its explained in the openwrt thread )?


anyone ?