1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Facebook Pages Custom Like Functionality

Discussion in 'Web Development' started by cancer10, Feb 22, 2011.

  1. cancer10

    cancer10 New Member

    Joined:
    Jul 12, 2008
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Webmaster
    Location:
    India
    HI Everyone


    Please take a look at http://www.facebook.com/FanPageEngine?v=app_148891981830105

    That facebook page will allow you to view the contents only when you click on the "Like FanPage Engine" button.

    Does anyone here know how to do that?



    Any help will be appreciated.


    Many thanks in advance
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    This is not a Facebook Page but a Facebook App.
     
  3. cancer10

    cancer10 New Member

    Joined:
    Jul 12, 2008
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Webmaster
    Location:
    India
    Thanks. How do we do it now?
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
  5. cancer10

    cancer10 New Member

    Joined:
    Jul 12, 2008
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Webmaster
    Location:
    India
    Hi Sir

    If you see the link I provided, it will not ask you to allow anything, but when you click on that big customized LIKE button, it will act as the FB LIKE and post on your wall as "you liked blah blah"

    My question is how do we create custom LIKE button because FB does not allow you to customize it.


    Pls help
     
  6. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    All this can be easily done using just FBML

    Just use the following condition in your Static FBML page.

    Code:
    <fb:fbml version="1.1">
    <fb:visible-to-connection>
    	Visible to people who like it.
    <fb:else>
    	Not visible to people who did not like it
    </fb:visible-to-connection>
    </fb:fbml>
    I have not implemented exactly the same here but a lot of it.
     
  7. cancer10

    cancer10 New Member

    Joined:
    Jul 12, 2008
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Webmaster
    Location:
    India
    Thanks for sharing that.

    Few questions for you

    1) How did you made your APP as default page on your FB page?

    2) How did you hide the other default tabs, i.e Walls, info, etc

    3) Can you NOT make a custom FB LIKE button?
     
  8. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    Its an option under page settings.

    Those are options only for members and so Facebook hide them automatically.

    I never thought about it but yes I can using the Facebook like plugin for a Facebook URL
     
  9. cancer10

    cancer10 New Member

    Joined:
    Jul 12, 2008
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Webmaster
    Location:
    India

    I wish to make a custom LIKE button, can you please tell me how?


    Thanks
     
  10. cancer10

    cancer10 New Member

    Joined:
    Jul 12, 2008
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Webmaster
    Location:
    India
    Also, if you can tell me how did you added this image? [​IMG]
     
  11. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    Using <img src in the FBML
     
  12. keyideas

    keyideas New Member

    Joined:
    Nov 23, 2010
    Messages:
    33
    Likes Received:
    4
    Trophy Points:
    0
    Occupation:
    Online research work
    Location:
    India
    Home Page:
    Some of the companies are also implementing and integration facebook application and plugin. You can hire them
     
  13. cancer10

    cancer10 New Member

    Joined:
    Jul 12, 2008
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Webmaster
    Location:
    India

    Hi Again

    This FBML is not supported by most of the browsers. What do you do in such cases?

    Thanks
     
  14. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    Like which browser? I see it works well in IE/Chrome/FF/Safari/Opera/Flock
     
  15. cancer10

    cancer10 New Member

    Joined:
    Jul 12, 2008
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Webmaster
    Location:
    India


    Hi

    I just figured that if you login as admin then this condition does not work.

    I mean content in both if and else are shown to admin.


    Is it true?
     

Share This Page