Tutorial: Integrare Facebook Connect in un sito sviluppato con CMS (Lesson 4)

Spread the love

Siamo giunti oramai all’ultima lezione di questo tutorial e sarete diventati sicuramente degli abili “integratori” di Facebook nel Vostro sito.

Vediamo dunque quest’oggi qualche ultimo particolare per affinare ancor più le nostre personalizzazioni al contenuto di Facebook sul nostro sito web.

Un difetto spesso riscontrato di un nostro utente loggato in Facebook riguarda la dimensione delle foto dell’avatar. E’ necessario per un’essenziale questione estetica far si che tutti gli avatar abbiano la stessa dimensione…cioè come quella di Facebook (48 x 48 Pixel).
Il plug-in di Facebook Connect installato sul nostro CMS però imposta una larghezza standard di 48 Pixel lasciando invariata invece l’altezza (cioè di qualsiasi dimensione), e questo sicuramente creerà un disordine grafico all’interno di un layout magari curato ad hoc. Per permettere il ridimensionamento degli avatar in automatico a quelli delle dimensioni di Facebook (48 x 48 Pixel), procediamo nel seguente modo:

Aprite con Notepad++ (per chi necessitasse di un rinfresco vedi lezione 3) e con questo, editate il file fbConnectLogic.php come abbiamo sempre fatto.

Per effettuare l’editing basta portarsi alla riga 365 (sempre al lato destro del vostro schermo” e cambiare il valore di
size=”thumb” con il parametro di size=”square”.

Il gioco è fatto.

Altra modifica che possiamo ottenere è quella di eliminare il link del profilo Facebook nei commenti qualora egli non sia logato ed inserire un link autonomo.
Per fare ciò, necessiterà all’interno del file comments.php (sempre modificandolo con un editor html), inserire il seguente codice:

<?php
    if(is_user_fbconnect($comment->user_id)){
        comment_author();
    }else{
        comment_author_link();
    }
?>

Così, l’autore del commento non loggato in Facebook avrà libertà di inserire il proprio link.

Finisce qui la mini-guida dell’integrazione tra Facebook ed il nostro sito realizzato con WordPress, molteplici ancora sono le modifiche che possono essere effettuate al plug-in qualora non si scegliesse di utilizzare le Widget standard.

Torneremo sull’argomento qualora ci saranno nuovi sviluppi, per ora l’unico augurio è quello di una “buona Face-integrazione”.

2.645 commenti su “Tutorial: Integrare Facebook Connect in un sito sviluppato con CMS (Lesson 4)”

  1. Hey There. I discovered your blog using msn. This is a really neatly written article.
    I will be sure to bookmark it and return to read extra of your helpful info.
    Thanks for the post. I will certainly return.

    Rispondi
  2. Pretty nice post. I just stumbled upon your blog and wanted to say
    that I have truly enjoyed surfing around your blog posts. In any case I’ll
    be subscribing to your feed and I hope you write again very
    soon!

    Rispondi
  3. Please let me know if you’re looking for a author for your weblog.

    You have some really good articles and I think I would be
    a good asset. If you ever want to take some of the load off, I’d really like to write some content for your blog in exchange for a link back to mine.

    Please shoot me an email if interested. Many thanks!

    Rispondi
  4. hey there and thank you for your information – I have certainly picked up something new from right here.
    I did however expertise some technical points using this web site,
    as I experienced to reload the website lots of times previous to I could get it to load correctly.
    I had been wondering if your web hosting is OK? Not that I’m
    complaining, but slow loading instances times will often affect
    your placement in google and can damage your high quality score if advertising and
    marketing with Adwords. Anyway I am adding this RSS
    to my e-mail and could look out for a lot more of your respective intriguing content.
    Make sure you update this again soon.

    Rispondi
  5. best online pharmacies in mexico [url=https://mexicanpharmacy.win/#]Medicines Mexico[/url] reputable mexican pharmacies online mexicanpharmacy.win

    Rispondi
  6. you are really a just right webmaster. The site loading velocity is incredible.
    It sort of feels that you are doing any unique trick. Furthermore, The contents are masterwork.
    you have performed a wonderful job in this topic!

    Rispondi
  7. Hi there! Quick question that’s entirely off topic. Do you know how to make your site mobile friendly?
    My blog looks weird when browsing from my iphone 4. I’m trying
    to find a theme or plugin that might be able to resolve this problem.
    If you have any recommendations, please share. Thanks!

    Rispondi
  8. Do you mind if I quote a few of your posts as long as I provide credit and sources back to your blog?

    My website is in the exact same area of interest as yours and
    my users would really benefit from some of the information you present here.

    Please let me know if this ok with you. Appreciate it!

    Rispondi
  9. Its like you read my mind! You seem to know a lot about this, like
    you wrote the book in it or something. I think that you can do
    with a few pics to drive the message home a little bit,
    but other than that, this is wonderful blog. A great read.

    I will definitely be back.

    Rispondi
  10. excellent put up, very informative. I’m wondering why the opposite specialists of this sector do not realize this.
    You must continue your writing. I’m confident, you’ve a huge readers’ base already!

    Rispondi
  11. My partner and I stumbled over here coming from a different website and thought I might as well check things out.
    I like what I see so i am just following you.
    Look forward to looking into your web page for a second time.

    Rispondi
  12. indian pharmacies safe [url=http://indianpharmacy.shop/#]indian pharmacy[/url] cheapest online pharmacy india indianpharmacy.shop

    Rispondi
  13. My partner and I stumbled over here coming from
    a different web address and thought I might as well check things out.
    I like what I see so now i am following you. Look forward to going over your web page
    again.

    Rispondi
  14. canadian pharmacy ltd [url=https://canadianpharmacy.pro/#]Pharmacies in Canada that ship to the US[/url] pet meds without vet prescription canada canadianpharmacy.pro

    Rispondi
  15. I know this if off topic but I’m looking into starting my own blog and was wondering what all is required to get set up?
    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very web smart so I’m not 100% positive. Any tips or advice would be greatly appreciated.
    Kudos

    Rispondi
  16. Woah! I’m really enjoying the template/theme of this website.
    It’s simple, yet effective. A lot of times
    it’s hard to get that “perfect balance” between usability and
    visual appearance. I must say that you’ve done a superb job with this.
    In addition, the blog loads very fast for me on Internet
    explorer. Exceptional Blog!

    Rispondi
  17. Magnificent beat ! I wish to apprentice while you amend
    your website, how could i subscribe for a blog site? The account helped me a applicable deal.
    I have been tiny bit acquainted of this your broadcast provided vivid transparent concept

    Rispondi

Lascia un commento