Current controller function for Facebook buttons

42 views
Skip to first unread message

Gael Princivalle

unread,
Nov 18, 2014, 1:41:55 AM11/18/14
to web...@googlegroups.com
Hello all.

I would like to add Like and Share buttons to my app.
It seems really simple with this Facebook instructions:

I've had these buttons at the end of my layout,.
I need to build the url to pass to Facebook.
data-href="http://www.mydomain.com//{{=my current controller function and my current vars and args)}}"

How can I do it ?

Regards

Leonel Câmara

unread,
Nov 18, 2014, 5:38:56 AM11/18/14
to web...@googlegroups.com
URL(args=request.args, vars=request.vars, scheme=True, host=True)

Gael Princivalle

unread,
Nov 18, 2014, 7:19:05 AM11/18/14
to web...@googlegroups.com
Thanks a lot Leonel.

----------------------
Gael Princivalle

2014-11-18 11:38 GMT+01:00 Leonel Câmara <leonel...@gmail.com>:
URL(args=request.args, vars=request.vars, scheme=True, host=True)

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/K7Xd6R0p8Ps/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages