How do I test the Facebook “Like” button on localhost?
Not really; facebook has to crawl your site to pull in the title, description, and thumbnail. It can’t get to your site if it’s on localhost.
Not really; facebook has to crawl your site to pull in the title, description, and thumbnail. It can’t get to your site if it’s on localhost.
You could use <a href=”https://www.facebook.com/sharer/sharer.php?u=#url” target=”_blank”> Share </a> Currently there is no sharing option without passing current url as a parameter. You can use an indirect way to achieve this. Create a server side page for example: “/sharer.aspx” Link this page whenever you want the share functionality. In the “sharer.aspx” get the refering url, and … Read more
I am Partner Engineer at Facebook so I thought I’d chime in here. The Facebook APIs will not give you the user ID of users who have liked a page or interest, this is to guard the privacy of those users.
That is actually the only way to do it. There is no special iOS like button. However, the good news is that just today Facebook announced single sign in support for mobile apps. This should remove some of the burden the user faces to log in to facebook.
According to facebook policy on Social Plugins point 4 states: “Don’t obscure or cover elements of social plugins.” You can’t change the image directly because it’s provided by Facebook.
<script> FB.Event.subscribe(‘edge.create’, function(href, widget) { alert(‘You just liked the page!’); }); </script>
Simplest fix to hide the comment box after Facebook Like (XFBML version not the iframe one) is as given: .fb_edge_widget_with_comment span.fb_edge_comment_widget iframe.fb_ltr { display: none !important; } Put the CSS style in any of your CSS file and see the magic, it works 🙂
Page metadata isn’t the sort of thing that should change very often, but you can manually clear the cache by going to Facebook’s Debug Tool and entering the URL you want to scrape There’s also an API for doing this, which works for any OG object: curl -X POST \ -F “id={object-url OR object-id}” \ … Read more
Use this library: Facebook Like button for Android. There is detailed manual here. Sources: https://github.com/shamanland/facebook-like-button Gradle dependency: repositories { mavenCentral() } dependencies { compile ‘com.shamanland:facebook-like-button:0.1.8’ } The simplest way to add like button: <com.shamanland.facebook.likebutton.FacebookLikeButton style=”@style/Widget.FacebookLikeButton” app:pageUrl=”http://blog.shamanland.com/” app:pageTitle=”Developer’s notes” app:pageText=”This is blog about Android development.” app:pagePicture=”@drawable/ic_launcher” /> This view will be drawn in your layout: In … Read more
The best answer to this question from another forum, from Ash Rust in 2010: “After some testing and discussion with the Facebook platform team, there is no official limit I’m aware of or can find in the documentation. However, I’ve found 600 calls per 600 seconds, per token & per IP to be about where … Read more