English 中文(简体)
LIKE Buttons from Facebook Using Opengraph Tags
原标题:LIKE Buttons from Facebook Using Open Graph Tags

我有一个有电影和审查的网站。 在某个电影网页上,我有一部电影版和《Facebook》等。 我愿像纽特那样使用开放图示普森。 但是,在电影的后面,我也进行了像纽州一样的审查。 我希望这些审查不会使用图A普西语,也只是把与审查的联系像样。

这是可能的吗?

问题回答
<head>
<meta property="og:title" content="Spaceballs"/> 
</head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId={{your app id}}";
  fjs.parentNode.insertBefore(js, fjs);
}(document,  script ,  facebook-jssdk ));</script>

<div id="movie-info">
  <h1>Spaceballs</h1>
  <h3>Sci-Fi, Spoof, Comedy</h3>
  <div class="fb-like"></div>
</div>

<div>
  <div id="review-1">
    <div>The crappiest movie I ever saw.</div>
    <div class="fb-like" data-href="http://example.com/Spaceballs/Review/1"></div>
  </div>
<div id="review-2">
  <div>Some people just don t get Mel Brooks, but if you do this movie will likely cause stack overflows in your data processors.</div>
  <div class="fb-like" data-href="http://example.com/Spaceballs/Review/2"></div>

</div>
</body>

Not sure if I understood your question, but just change the href attribute on the like buttons?





相关问题
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 ...

热门标签