Trigger "Like" function on the static image button given by client
Generally I am developing a fanpage which require users to "Like" before enter the content. I had been given a static image with a like button on the image which is silly I guess > <. I know how to put a div on that particular position and triggering a function call. However I don't know the way of calling "Like" function on it.
Please guide开发者_如何学C me.Thanks in advance.
Eric.
However I don't know the way of calling "Like"
what do you mean ? the function/procedure of the "like" if that's the case you just have to add it on the database the refresh the part of it the counter label and thats all.. hope this will help.
You can't mimic the Like functionality, you need to use the Like plugin or encourage the user (in your image) to click on the like button on top of the page.
The second approach is widely used by major brands like Coca-Coca and Red Bull for example.
精彩评论