- Determine the URL of what you want your Like button to like.
If it is a posting you have to hover over the timestamp to see the URL. - Paint an HTML Widget on your Uniface Form.
- Assing the following string to the widget:
"&http://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2FUnisocialCommunity%2Fposts%2F382515988535596&send=false&layout=button_count&width=450&show_faces=true&font&colorscheme=light&action=like&height=21&appId=222806551068648" - Now the Like button goes to one of my postings.
To change that replace the URL in the href parameter with your own URL. Use URL encoding, %2F is a foward slash. So you have to replace this bit:
https%3A%2F%2Fwww.facebook.com%2FUnisocialCommunity%2Fposts%2F382515988535596 - Compile and run!
(If you are not logged on to Facebook yet, a login dialog will appear after you have pressed to button. Please follow the instructions in the dialog.)
Needless to say that this is just as easy in a Uniface Web application...
Geen opmerkingen:
Een reactie posten