问题
Is this possible?
When someone clicks a Facebook Like button, he/she shares the web page URL with friends on Facebook.
With the same click, the user also becomes a fan of the web site's Facebook fan page.
Thanks!
回答1:
See this link on Facebook's developer site.
This will do all the points 1 and 3 you mentioned above. As far as point 2 goes, you will need to reference that on your facebook page.
回答2:
While adding a Like button on your website to like you "Facebook Page" is possible (and I guess you know that), you can't use the same button to like multiple entities (your current page and the Facebook Page).
What you can do is:
- Have two Like buttons, one for the current page and one for the Facebook Page
- Place the Like button of your Facebook Page in a "visible" location (e.g. on top of the sidebar)
- Capture the like event of your current page (with edge.create)
- Encourage the user to "Become a Fan on Facebook too" whenever they like your current page.
来源:https://stackoverflow.com/questions/5846716/link-web-page-facebook-like-button-and-facebook-fan-page