Is it possible to have a callback URL on foursquare Web buttons when they have been successfully clicked?
Is it as simple as just including a redirect_url attribute in the html?
You can try capturing the click event client-side and using that information as you wish.
Related
i'm working on a web app, and I added a facebook like/share button by following this tutorial. I was wondering, is there a way to catch the event in the controller, if someone shares the page ?
If you're only trying to retrieve data passively (ie. just count the likes or retrieve the cookie of the liker), you can catch the click event with JS and make an ajax call to your controller.
To completely catch the event and tweak it before sending it to FB, you can hack the behaviour of the button to make it point directly to your controller, and then send the request to facebook yourself via your own custom method.
The code generated by FB's like buttons is not that simple though, so I would stick to the first method if I were you.
I have been using Flipboard for sometime. And on the the app their is a really customized Facebook LIKE button. How do I achieve this for my mobile web app?
"Like" is nothing but a connection available on different Facebook objects like "Albums", "Post" and many others. To create a like you need to issue "HTTP POST" on the click of the button or element you want to represent as a like button. For example to create a like on Album object using PHP SDK :-
$likeCreate = $facebook->api("/ALBUM_ID/likes","POST");
This creates the like for the user using the application through which this call was initiated and also requires publish_stream permission.
I have added the facebook recommend/like button in my application. All I want is when user click on the recommend/like button then the comments box should be pre-poulated with some default text.
Is it possible to do this? if so how can i achieve that?
If you're talking about a facebook comments box: its not possible. Checkout this: Facebook Like Button with prepopulated Comment
Otherwise, if its a custom comment box, this will need to be done via javascript SDK. Check out the documentation for subscribing to like events on a page here.
I am developing an iPhone application that lists videos posted on logged-in user's wall. I would like to provide an Like button below each video listed. When the user clicks on this Like button, the corresponding video should be liked in Facebook.
The Like button shown in the UI should match the UI theme of my app. I have gone through Facebook plug-in documentation related to Like button. Following is the link with the documentation:
http://developers.facebook.com/docs/reference/plugins/like/
But, I cannot use this Like button generated using iFrame since I will not be able to customize the look of Like button.
How can I customize my Like button? Or how can I programmatically like a Video URL? I am trying to this since long time. I have seen some iPhone apps already having custom Like button.
Take a look here for a nice how-to on styling:
http://www.esrun.co.uk/blog/disguising-a-facebook-like-link/
And the specific policy from Facebook is that as long as you are not deceiving the user, the policy team would consider this practice acceptable.
I could do it using Graph API. New SDK provides support for Graph API.
I want to interigrate i like it button in my Iphone/ Ipad application please help me out?? with some steps and all the required things ????
Thanks a lot in advance...
Are you speaking of the "Like" button or the "i like it" stream post?
For the "Like" button, you need to create a UIWebView and then:
have a page hosted somewhere with your xfbml or iframe like button
or use NSBundle to inject HTML and javascript and then read it from a string
Either way - you will get a like button working.
For the stream publish, you need to use the iOS SDK to make a graph call to '/me/feed', 'post' etc... with your appropriate params and message.