is there a specific link that I can use for "Liking" something? I'm looking to make a rating system that when someones votes something as 5 stars, it automatically "Likes" the image or whatever. I know there is www.facebook.com/plugins/like.php?, but when I use that in my JavaScript, it automatically forwards them to a page with a like button only on it...
FYI, I'm not hiding the like button, it will be known by users...
I also tried .trigger('click'); but that doesn't work with the like button!
Thanks in advance!
You have stumbled across some road-blocks that Facebook implemented to prevent abuse of their like button. You will have to play by their rules to play in their sandbox they built. So use the social plugin: http://developers.facebook.com/docs/reference/plugins/like/
Related
My company owns several magazines and we want to put one LIKE button on our corporate site to like all of our magazines. Is there a way to do this? I have been searching around and cant find a solution.
I'm pretty sure this can't be done as a means of security.
I may click like on your "Pie of the Month" magazine, but if you control the button, you may have me like "Pie of the Month." "Womens Shoes." and "Girls Gone Crazy." I believe the reason is obvious why facebook won't allow this.
Instead try doing a like button for your corporations entire collection of magazines or "Gamer Magazines by xxxxxx."
This should help solve the problem without asking facebook to rewrite the entire API.
I'm setting up a sharer on my site pages, and i've found different links for using the sharer :
share.php
sharer.php
sharer/sharer.php
Which one is the right one to use ?
In the Facebook doc it says the second one, but only with the third was i able to share to a fan page (no linked profile).
Is there a difference between sharing on a profile or on a page ?
Thanks.
There is not much difference among them, it is just their looks and size that is changed using the property type.
I would strongly recommend against:
"The Share button has been deprecated in favor of the Like button, and will no longer be supported.
Please use the Like button whenever possible to drive maximum traffic to your apps."
So, instead of waking up with an nonfunctional share button, you'd be better off with a like button, or implementing a share button from scratch using the JS SDK.
Also, I can tell you for a fact that most of the people would share on their own wall rather than on a page.
The correct one to use is sharer/sharer.php
<a href="https://www.facebook.com/sharer/sharer.php?u=example.org" target="_blank">
Share on Facebook
</a>
https://developers.facebook.com/docs/reference/plugins/share-links/
I'm trying to get the list of all the pages that a user "likes", both Facebook pages and external pages.
I know that the facebook pages (such as http://www.facebook.com/DealExtremeFans) I can obtain them with the "me/likes" value from the Graph.
But for a page such as (http://mashable.com/2012/01/20/advertisers-this-is-what-an-nfl-fan-looks-like-infographic/) that has a like button (under the title) I don't see how to get those likes.
Is this possible? If not, are you planning on adding support for this any time soon?
Thanks
EDIT:
According to the response below, even though they are added via the "like" button they are really "Shares".
Now my question is, how do I get those shares? what's the graph for them? I tried "me/shares" but doesn't exist.
Is there a way?
Yes it is possible, but it looks like that URL only has shares:
Click here.
And here is a link to a tutorial for getting the data via jQuery.
It's awful that this thing is called "Like"-Box and there is no way to like, comment or share on an actual wallpost shown in the activity feed!
Is there a way to customize the Like-Box core so that these three little items are shown?
Would be great!
The only customization options are those found on the documentation page. You could build your own though using the Facebook graph API to pull a pages feed down and add like and share buttons.
I have a like button on my site, i have defined all the og: meta tags and its works for most of most pages, but doesnt for 2 other pages. Its using a template so its exactly the same code, how can it work for some but not all pages?
For the pages it doesnt work, it doesnt pick up the title, image, link or description, basically any of the meta tags information.
Working like button....
http://www.imoffonholiday.com/holiday.php?id=des_home&destination=faliraki
Not working Like button
http://www.imoffonholiday.com/holiday.php?id=des_home&destination=ayianapa
Any ideas?
One usual problem is caching. If you were testing and at some point had the wrong data in the metatags facebook will cache that info.
One simple wat to test if it is a caching issue is to add a random param at the end of the URL.
so www.yourpage.com/index.php?cacheBust=1
Running the Facebook Debugger often clears those kind of things up. It appears to refresh the FB cache when you do.