Currently I’m hitting the API through the JS SDK. What I am trying to do is accomplish is having a like button on my website. But rather than liking the URL you are on..like the fan page. Is this possible?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, it is possible.
With the iframe version: you would assign the
hrefvalue to the URL you’d want to like. In your case, the url of the facebook fan page.Just make sure you escape the characters in the url correctly. For example:
http://www.facebook.com/yourpage
would become:
http%3A%2F%2Fwww.facebook.com%2Fyourpage