Like Button customization - facebook-like

I'm trying to implement the Facebook Like button into a site and basically what I want is a very simple button that when clicked likes the corresponding facebook page and then opens it in a new window. I don't want the comments or the faces or the count, just the button and when clicked I don't want the option to add a comment. It just likes the page and opens it in a new tab, nothing more.
Any help would be appreciated.

Use this link
http://developers.facebook.com/docs/reference/plugins/like/
You can find answer for your question . Simply select the Layout to box_count or button_count . You will get simple like button .

If you want to use the facebook like plugin, the only customizations you can do are available here:
http://developers.facebook.com/docs/reference/plugins/like/
This will also generate the code on html5/iframe/xfbml into your application.

Related

Qt: how can I make hyperlink in qpushbutton?

hi I'm trying to make hyperlink in a QPushbutton.
I searched for information that mights help and I found this:
Qt - add a hyperlink to a dialog
this told me how can I use hyperlink at a dialog(or mainwindow.)
However, what I want to is to use hyperlink in the QMessagebox when appears after clicking QPushbutton.
I searched that if I can use qlabel in qmessagebox but I couldn't find any information..
How can I do this?
(Any other way I can apply to make hyperlink by clicking a second button is fine. What I'm trying to do is 1st. click a button and my program will get an url information. 2nd. clicking a second button and it will activate my url)
If all you want is clicking a second button and it will activate my url then you can use QDesktopServices::openUrl() to open a URL. It automatically uses the application the user has configured, i.e. the browser or mail programm depending on the type of URL you give it.

How to use ionic model to view and edit data? is it good approach?

I have saved data in sqlite. Now i want to edit data. I want to create a model and give list of saved records in it. when user click on any row display on model it will go into edit mode . Is it good approach or should i create another page ??
I think to provide them with edit button/icon and when they click on edit button you can change all labels to Text edit format.
reasons -
This will be a mobile app, hence user needs to touch on the screen to scroll/change to another page. if the user mistakenly clicks on the label then the label will get change to edit mode and I guess that's bad user experience.
Every time you need to save the changes when the user clicks on the label (more database operation for a single word change).
Instead of this just provide edit button/icon, when they click on edit button, make the same page change to edit mode and show them save button (replace edit button).
Hope this will help you.
I don't see the link with the data model. However, when it comes to design, it is better if the user clicks on a row to open a new page.
If you want to switch to an edition mode, then you need a button dedicated to this feature.
Think "WYSIWYG" --> "What You See Is What You Get".

Facebook like button: predefined text in the popup window

I need to specify a predefined text in the textarea that pops up when you click "like". How can I do that? (I am not talking about the description that you can set with og:description).
that section of the post is populated with a built-in like (from your app).
I don't think that there is a way to add text to a facebook like, unless the person who shares it wants to add a comment. If your app has special API privileges then you can probably add a personalized message. For that though, you have to apply and applications are closed at the moment. I hope this helps.

How can I reduce the loadtime when showing multiple like buttons (about 60 buttons)?

On one of my pages I'm showing about 60 items I would like to be "likeable" via facebook. The problem is that I can not use several pages to show the items since this would reduce the usability of the page. But when loading / showing 60 like buttons is just too much for my browser. The page is not usable anymore because even scrolling takes several seconds because of the impact of showing 60 likte buttons.
Does anybody know of an alternative way of using the like button? Would it be possible to build a custom like button which loads the like count from my local database and somehow triggers the facebook like mechanism when the user clicks on my own like button?
This could be done by building a custom like button which on click loads the real like button, hides it and automatically triggers the click on the real like button? Would this even be allowed or is forbidden by the facebook guidelines? If that is the case, is there any other way?
Best regards,
Daniel
Use a placeholder image and load them lazily via javascript when the user hovers on it. That's what Techcrunch does.
There are a few things you can do here that may speed up load times:
Make sure you're only loading the JS SDK once - the latest code from the Like button configurator takes care of this for you.
Load the JS SDK asynchronously, as described on the JS SDK overview page
Use the XFBML version of the Like button
You should use xFBML version of Like button and load the SDK asynchronously.
http://developers.facebook.com/docs/reference/javascript/
You cannot trigger the click of a like button in javascript.
You can however, hide the like button until the user hovers over the like button and create it then.
Something like this might be helpful:
http://www.reddit.com/r/programming/comments/k6kzy/german_publisher_heise_creates_a_privacy/

Like a specific photo in Facebook album outside of facebook

I am totally new to this. What I want to do is to add a like button on an external website, which will then like a photo in one of the album in a page. I followed the instructions but still get "error" or page inaccessible whenever the like button is clicked.
The test page is at http://www.jeremyhoo.comlu.com/rosken/ try clicking the like button to see what I mean. Any idea how do I correct this?
Thanks Heaps!
Change your og:url to http://www.jeremyhoo.comlu.com/rosken/