facebook-like

Facebook “like” data structure

夙愿已清 提交于 2019-11-27 18:10:35
I've been wondering how facebook manages the database design for all the different things that you can "like". If there is only one thing to like, this is simple, just a foreign key to what you like and a foreign key to who you are. But there must be hundreds of different tables that you can "like" on facebook. How do they store the likes? Adam Robinson If you want to represent this sort of structure in a relational database, then you need to use a hierarchy normally referred to as table inheritance. In table inheritance, you have a single table that defines a parent type, then child tables

Adding the Facebook Like Button in an iPhone App

无人久伴 提交于 2019-11-27 18:01:31
Does anyone know how I would include a facbeook "like button" in an iphone app. I tried calling the iframe inside of a UIWebView but that doesn't work. Ben Groot Check out this nice bit of code: http://angelolloqui.blogspot.com/2010/11/facebook-like-button-on-ios.html Add the FBLikeButton class to your view: FBLikeButton *likeButton = [[FBLikeButton alloc] initWithFrame:CGRectMake(0, 372, 320, 44) andUrl:@"http://www.facebook.com/pages/De-Zilk/108209735867960"]; Thanks a lot Angel García Olloqui EDIT: Nice to add... For bonus points: If you use above method the webpage is not well formatted

Facebook like and share button with callback

六月ゝ 毕业季﹏ 提交于 2019-11-27 17:53:46
I have a webpage where I have placed a Facebook like & share button and corresponding javascript callback functions are also present. Now the problem is, the javascript callback fires only when the user 'likes' and doesn't seem to fire when the 'share' button is pressed. Its like I need to award the user everytime he/she shares the link. Whereas with 'like', a user can only like a link once (not considering unlike/re-like). I know that the Share button is deprecated. But facebook now provides a share button with a like button. Source : https://developers.facebook.com/docs/plugins/like-button/

Changing Facebook meta tag Content Attribute using JQuery

家住魔仙堡 提交于 2019-11-27 17:52:50
问题 I want to know how can I use JQuery in order to replace the content attribute of my Facebook meta tags. I searched StackOverflow and what I've found was this example: $("meta[property=og:title]").attr("content", title); $("meta[property=og:url]").attr("content", url); In my code I have the following meta tags: <meta property="og:title" content="some content"/> <meta property="og:url" content="some content"/> <meta property="og:site_name" content="some content"/> When I run the function that

Facebook Like Box plugin doesn't show up for logged out users; only for logged in users

不想你离开。 提交于 2019-11-27 14:38:12
问题 I'm trying to add the Facebook Like Box social plugin in my website(I took the code from the official documentation). It works fine but only if I'm logged into Facebook; if not it just shows Facebook Public Profile Login to see this content I don't really understand the problem because in other websites I've built everything worked just fine. I'm thinking that this might be a page setting. This is my <iframe> code for the Like Box: <iframe src="http://www.facebook.com/plugins/likebox.php?id

How to handle facebook like with confirm in android webview

北城以北 提交于 2019-11-27 14:14:52
I am trying to implement facebook like functionality using android webview. It is working fine without "confirm" dialog. But its not working when like needs confirmation. Here is the code snippet i am using. private void setUpWebView() { likeWebView.setVerticalScrollBarEnabled(false); likeWebView.setHorizontalScrollBarEnabled(false); likeWebView.setWebViewClient(new FacebookWebViewClient()); likeWebView.setWebChromeClient(new MyChromeClient()); likeWebView.getSettings().setJavaScriptEnabled(true); String url = getFacebookLikeUrl(); likeWebView.loadUrl(url); } I am also setting ViewClient and

Facebook Like button in Android Application

偶尔善良 提交于 2019-11-27 13:32:12
问题 I want to display like button in my android application. Below is the code I use to display a Like button in my android application. String url = "http://www.facebook.com/plugins/like.php?layout=standard&show_faces=true&width=80&height=50&action=like&colorscheme=light&href=http://beta.demo.dy/web/service/304.htm" webview = (WebView) findViewById(R.id.webView1); webview.loadUrl(url); webview.setWebViewClient(new LikeWebviewClient()); public class LikeWebviewClient extends WebViewClient {

Is it possible to have a custom facebook like button? [duplicate]

回眸只為那壹抹淺笑 提交于 2019-11-27 12:48:10
问题 This question already has an answer here: How to trigger Facebook like button from custom button? 8 answers Sometimes, clients want to have a custom "facebook button". I mean with a different image and design. I used to work with sharer.php : <a id="fb-share" style='text-decoration:none;' type="icon_link" onClick="window.open('http://www.facebook.com/sharer.php?s=100&p[title]=foo&p[summary]=bar&p[url]=https://www.foobar.com/&p[images][0]=https://www.foobar.com/thumb.gif','sharer','toolbar=0

Facebook 'Like' button breaks https/SSL

こ雲淡風輕ζ 提交于 2019-11-27 12:30:55
问题 On an e-commerce website I maintain, I added a Facebook 'Like' button per the instructions here: http://developers.facebook.com/docs/reference/plugins/like I am using the iframe method: <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fexample.com%2Fpage%2Fto%2Flike&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"> <

Get the number of facebook *shares* of a specific URL

徘徊边缘 提交于 2019-11-27 11:08:55
问题 I've found some discrepancies in the graph api and was wondering if anybody has been able to work around them. https://graph.facebook.com/?id=http://www.imdb.com/title/tt0117500/ outputs a "likes" number together with all of the open graph info provided by imdb, associated to its fb:app_id. https://graph.facebook.com/?id=http://www.google.com however, outputs the "shares" number, as google doesn't provide an fb:app_id or fb:admins. My problem is that I need the "shares" number for the first