I want create own "Like it" Facebook button - similar with my website design.
I know that Facebook use special "secure" method to authorize "Like it" clicks.
But I think I know how to hack it and create own styled and working "Like it" Facebook button.
I hear that this it's not allowed by facebook rules and here I asking - is there any side effect from Facebook? Can they block my account?
UPDATE:
I changed my decision.
I will stay with facebook standard button.
There is no sense and not worth it to modify this button :/
Yes, they can do whatever they want if you violate their ToS. Facebook is a stickler for maintaining its brand, and modifying the Like button would definitely not make them happy. Save yourself the trouble and just use what they give you.
Hacking the like function? Assuming there was some way to "hack" this it would definitely be a TOS violation.
If you mean, however, creating custom actions for posts generated by apps, that is within the Graph API. Start out by learning to use the Facebook API by looking at its documentation. Create an app in the Facebook system first.
http://developers.facebook.com/docs/
After you've learned all about requesting permissions and proper usage of the FB dialogs and user content-control system (this includes best practices and rules), you'll find a special parameter submitted with the set for "posts" in the api called "actions." This property accepts a JSON object of the link text and link to forward to. Please note they do not allow your action names to collide with any of the Facebook core actions. Naming your custom action "like" and having it lead elsewhere is DEFINITELY a bad idea and will probably get your appID deleted.
http://developers.facebook.com/docs/reference/api/post/
You can use Facebook's share url to make your own buttons, and connect them to services like sharedcounter.com api (or build your own request to the Facebook api) to have the total "like" count. Example (hover on the heart sign on the left)
Related
FB, having updated their API to disallow generic shares (Oct 2012), now require us to utilise built-in actions. Moving on from there, we can use Mention Tagging (https://developers.facebook.com/docs/opengraph/mention_tagging/) to allow messages and mentions be created - this is all fine.
However, on the same page above they say "You must also describe step-by-step how users can add/remove tags in your app." - but they neglect describing what call must be made to the API to do so.
Has anyone else done this successfully?
Say I have a user who's mentioned 5 people in an action post. Then say one of them would like to be untagged. I provide them a link to allow them to untag themselves, but what call should be made to the API.
Has anyone got any experience at this? All help appreciated.
Paul G
Say I have a user who's mentioned 5 people in an action post. Then say one of them would like to be untagged. I provide them a link to allow them to untag themselves
I don’t think you have to offer a link for tag removal to the other users that have been tagged by your user. Standard FB functionality through the facebook.com UI should enable them to do that already.
It does not make much sense to me to offer such links on your own to people that have been tagged by your app’s user, but might not even be using your app themselves. (To ensure that they are legitimately requesting to be un-tagged, you’d have to identify them first – by having them connect to your app. I don’t think that’s how Facebook want it to be.)
To me, the intention of the guidelines is more to ensure that you are building a clearly understandable UI for your app, for the process of the user entering his message. If they start to type #PaulG, and you want to “translate” that into a tag, f.e. by highlighting it in the text edit box like it happens on facebook.com, then it a) has to be absolutely clear to your user, that they are tagging someone this way, and b) you have to give your user a way of removing that tag right there and then (before posting his message), in case he does not want to tag a user, but just have the characters “#PaulG” stand for themselves in his message.
I am having problems to link the Facebook Like buttons in my website with the OpenGraph Objects.
Since a couple of days, I have updated the metadata of my website declaring specific sites as different OG Objects. This is working fine, since
- the Facebook Debugger is accepting the URLs and recognizing them as OG Object with no errors
- the insights of my App shows me a very big increment of the Object Lifecycle from the moment these changes became live
At this point, I would have expected that every like button pressed in each of these sites would publish something similar to
"User1 likes a ObjectTitle on App"
but the message generated is still "User1 likes a link" or "User1 likes a page"
Is it really not possible to connect the original Facebook Like Button with an OpenGraph Object?
Do I need to create a "Built-In Like" to publish such a Story in a User's Timeline?
Do I miss something here? or is anyone having the same problem?
Thanks! I appreciate any kind of help.
Is it really not possible to connect the original Facebook Like Button with an OpenGraph Object?
Yes, that is exactly what you are doing. All your URLS that have been debugged and liked are now objects on the Graph.
Do I need to create a "Built-In Like" to publish such a Story in a User's Timeline?
Yes you need to use the built-in like action to achieve this, but Facebook will mostly likely reject your request to submit the action if your reasoning is not strong enough for not using the regular like button.
You need an object that is significantly different from a regular article page (e.g. a recipe)
I'm developing a simple Facebook application, and now I need to create a page where the user can invite friends.
Two questions about it:
How can I send invite using the PHP-SDK ?
Can I send custom invite? with "custom" i mean that I must to know how many users have been invited by user. How can I do it?
Have you attempted anything or do you have any code to show us? It sounds like you're just asking for the code especially as it is custom. You could try getting a list of users friends, and have a checkbox by each one, then you can access the array of who they selected. Then look at publish_actions permission - though I don't think it would be the best performance wide to loop through each friend and make a graph post to them on behalf of the user. I know you want a custom solution but to be honest your best bet maybe to use the native friend selector and the js-sdk
https://developers.facebook.com/docs/reference/dialogs/requests/
Then use the callback and some ajax to save the information you require. Look at the requests example here as well
https://developers.facebook.com/tools/console/
I know this subject has been done already over and over. but... i must be stupid so i'll try to figure out my problem simply.
I have a facebook page, let s say that one :
http://www.facebook.com/pages/Medieval-Forgecom/302734029745018
with a few fan poeple.
now on my website i would like to give a discount to poeple who are fan of that page.
So i tried the php api (with an application id and secret) before discovering that this is NOT what i want as my page is not an app and has no appId neither secret. Am i misunderstanding something here?
So i m wondering how in php i can know if someone is fan or not...
If it is not possible i could use the javascript api to make this check ( wich is quite bad, it should be done somewhere via php) but even this way i get trouble with the deprecated api and the code refering to javascript inside the facebook website.
in a nutshell, i'm lost.
thanks for your time and attention.
Do some research on the concept of "fan-gate". I think this is what you're looking for.
https://www.facebook.com/note.php?note_id=10150130919053430
http://www.youtube.com/watch?v=fBBnrtG0hAw
There are three ways of using Facebook API. Social plugins are widgets such as comments or like buttons. You can put them into your site directly and easily. And then there is the Graph API. First way of using this API is to create a whole standalone Facebook application, such as Farmwille. Second way is to use it only at your site, out of the Facebook frame. Regardless of the type of your usage, you need to register an application on Facebook, so Facebook API can authorize you. Without that you can't use the API. You don't need to create a real standalone app if you want only to use the API at your own site, but you must register it and this registration is just called Facebook application. It can be virtual application representing your site.
I'm developing this Facebook Application and I was wondering if it's possible (and how) to programmatically, through the Facebook PHP Graph API, press some 'Like' button on some page?
Of course, this is optional on my application... I'm still not ready to really explain what application I'm doing, but it would be interesting to code such a feature.
Is it possible somehow?
By your description it sounds like you're trying to get a user to like something without the users knowingly clicking a like-button. This sort of interaction is not condoned by Facebook, I think. There are various black-hatty ways to accomplish this though, one fairly elaborate one is descriped here: http://www.liquidrhymes.com/2010/08/25/smoking-hot-bartender-is-some-smoking-hot-facebook-spam/
UPDATE Sorry, I might be wrong. If you get stream_publish extended permissions from the user, you might be able to like posts on their behalf by doing a POST to /POST_ID/likes. See Publishing to Facebook in http://developers.facebook.com/docs/api
You cannot do this. Facebok wont let you do a POST to /POST_ID/likes, you can only do a get request to retrieve their likes. What you are trying to do is a violation of facebook's TOS. I would suggest just adding a like button and "forcing" them to like before they continue with your application. However, in my opinion even that is kind of silly because they can instantly go unlike it after they have used your application.
i was looking for the same thing, but not to force a user into liking something, but actually for their own protection.
here is where i come from: on a web site (maybe on multiple pages) there is an "I Like" button, implemented as described by facebook.
each time a user goes to that page, the browser will make a request to facebook, throught the iframe that contains the button, providing all the info that we are used to from a web server log file.
if the user has in the past logged in facebook and not cleared the cache. the request will also contain the cookie indentifying the facebook user.
so even more then analytics, facebook know all about the user activity on those pages.
so i wanted the user to only give this info when they decide to.
my solution was to have a button (as graphic only) on the page. when the user clicks it a new frame should open and only there the facebook code should be executed.
obviously on the new frame i could not put the normal "i like" code, since that would require a 2nd click for the user. at this point i would need the "programmatically clicking of the i like button".
it is not an opengraph solution, but it works: the frame just does a redirect to
http://www.facebook.com/share.php?u=URL