English 中文(简体)
Multiple Facebook Like buttons (different activities) on one page?
原标题:

My one web page uses Ajax to display information about multiple activities.

I d like to have one Like button per activity. This would mean multiple Like buttons on the page, one per activity. Can this be done?

Can the Like button s url include #!state1 ?

Eg, a web page is located at www.example.com/index.html

It has multiple FB Like buttons on it, one for url www.example.com/index.html#!activity1 another for www.example.com/index.html#!activity2

Will the two Like buttons work independently?

最佳回答

You can have multiple like buttons on a single page, but each like button must be linked to a separate page.

Eg: if you have products, each listing could have a like button next to it, but that like button would link to the product details page.

If you really wanted to, create phantom pages on your site with some meta tags. Then on your index.html, use like buttons that link to those pages.

To ensure no one ever gets to your phantom page, include the tag:

<meta http-equiv="refresh" content="0;url=http://www.example.com/index.html/">

That way, if someone clicks on the link that comes up on a facebook wall, they ll be redirected to the correct page.

问题回答

暂无回答




相关问题
Facebook Connect login dialog not working

I am using Facebook Connect for iPhone and following the official instructions. I use the following code to display the login dialog: FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:...

Facebook App Profile Tab is Empty ... No Content Displayed?

I can view my application via the http://apps.facebook.com/myapplication/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the ...

Facebook Platform error: "Object cannot be liked"

I m working on a Facebook Application that generates wall posts. In testing these posts, I ve discovered that the Facebook Platform action of "liking" a post is failing. The specific error message ...

how to call showPermissionsDialog() in php (facebook api)?

I was reading over the documentation yet I could not figure out how to call Facebook.showPermissionsDialog() in php include_once ./facebook-platform/php/facebook.php ; $facebook = new Facebook(my ...

Facebook connect

If I plug in the facebook connect into my website, How can I prevent double signups? Lets say I have a user that s already signed up to my site but he clicked the connect with facebook, is there a ...

热门标签