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

Facebook "likes on site" script??

Discussion in 'PHP & Perl' started by Teddie, Sep 21, 2010.

  1. Teddie

    Teddie Registered Member

    Joined:
    Feb 22, 2009
    Messages:
    86
    Likes Received:
    2
    Hello everyone,

    "John likes 'I've probably learned more from Google than I have from school' on 'FB Like'."

    Does any of you guy know where I can find a clone script of these sites??

    Examples:
    Code:
    http://www.mylike.in
    http://www.thefblike.net

    I've searched on Google, and I found few scripts but as I was trying them on my localhost I was getting a red "Error" message from facebook that this thing has been blocked for abusing facebook.

    Not to mention how bugged and out of date these scripts were... So, Can someone please give me a hand with this?

    Thanks.
     
  2. Crazy

    Crazy Jr. Executive VIP

    Joined:
    Jun 13, 2009
    Messages:
    640
    Likes Received:
    319
    Occupation:
    VB, C#, XHTML, CSS, PHP, MySQL, JavaScript, jQuery
    Location:
    Everywhere
    You most likely have to modify the app keys within the scripts.
     
    • Thanks Thanks x 1
  3. Stzzzz

    Stzzzz Junior Member

    Joined:
    Oct 2, 2009
    Messages:
    138
    Likes Received:
    9
    you have to modify app keys and og data, be sure to change to your domain
     
    • Thanks Thanks x 1
  4. CraigC

    CraigC Registered Member

    Joined:
    Mar 25, 2010
    Messages:
    51
    Likes Received:
    27
    Just to make you aware though, FB are blocking these sites constantly, be prepared to invest in several domains!
     
  5. Stzzzz

    Stzzzz Junior Member

    Joined:
    Oct 2, 2009
    Messages:
    138
    Likes Received:
    9
    u don'r need to invest in domains, just look around in the right places and u get them for free
     
  6. Teddie

    Teddie Registered Member

    Joined:
    Feb 22, 2009
    Messages:
    86
    Likes Received:
    2
    Seems like there are a lot of things that i'm not so aware of... What you mean by App keys and og data??

    Thanks a lot.
     
  7. Crazy

    Crazy Jr. Executive VIP

    Joined:
    Jun 13, 2009
    Messages:
    640
    Likes Received:
    319
    Occupation:
    VB, C#, XHTML, CSS, PHP, MySQL, JavaScript, jQuery
    Location:
    Everywhere
    og data wouldn't result in the abuse situation. og data is what is parsed by Facebook's internal processing of the user's "Like" action. This should be unique to each page, essentially. Read up on the Facebook Dev's API documentation about that. However, the app keys are within the script itself. Are you looking at the scripts? The main pages, such as index.php or like.php (I'm assuming these generic names), they should be including a file, such as facebook.php or connect.php (look for the include() function within teh script, at the top). Go to that script. You should see two variables being assigned a value at the top. Generally something like $APP_KEY = '';
     
  8. Teddie

    Teddie Registered Member

    Joined:
    Feb 22, 2009
    Messages:
    86
    Likes Received:
    2
    Thanks, That help a little bit. But I still don't really get the App key part and what it means... Do you have to create a facebook app on facebook.com first or what?

    I've searched all the php files for something about keys, But nothing relevant.
     
  9. Crazy

    Crazy Jr. Executive VIP

    Joined:
    Jun 13, 2009
    Messages:
    640
    Likes Received:
    319
    Occupation:
    VB, C#, XHTML, CSS, PHP, MySQL, JavaScript, jQuery
    Location:
    Everywhere
    Yeah, that's correct. You have to create the app on Facebook and they'll issue you two keys... an APP_ID and a SECRET (cryptographic purposes). Again I don't have this script, if you want you can send it to me and I'll look through it, but in my script that I'm developing pretty much from a bare-boned script I got my hands on, it was somewhere in there. Right now I manage it in my session.php which manages user login session and what not...

    Look for APP_ID or FACEBOOK_APP_ID or FACEBOOK_APPID. Along those lines... if you find that, you should also find the secret code.
     
    • Thanks Thanks x 1
  10. Teddie

    Teddie Registered Member

    Joined:
    Feb 22, 2009
    Messages:
    86
    Likes Received:
    2
    I have looked in 3 different scripts for anything about the application ID or the secret key, But didn't find anything.

    I've packed all the 3 scripts in a rar file here...
    Code:
    http://rapidshare.com/files/422140116/Teddie.rar
    Any help is much appreciated.
     
  11. Crazy

    Crazy Jr. Executive VIP

    Joined:
    Jun 13, 2009
    Messages:
    640
    Likes Received:
    319
    Occupation:
    VB, C#, XHTML, CSS, PHP, MySQL, JavaScript, jQuery
    Location:
    Everywhere
    Okay sorry, my fault. I've been speaking from the perspective that you'd be letting users connect, thus requiring the APP_ID & SECRET keys to request OAuth token, etc. What you'll want to change is the appID (search for it as "appId"). You'll see a 32chr MD5 hash value... this is the appID. You'll be assigned an appID when you create your application.

    Specifically, you're looking for snippets of code like this:

    Code:
    <script>
              window.fbAsyncInit = function() {
                FB.init({appId: 'APP_ID_GOES_HERE', status: true, cookie: true,
                         xfbml: true});
              };
              (function() {
                var e = document.createElement('script'); e.async = true;
                e.src = document.location.protocol +
                  '//connect.facebook.net/en_US/all.js';
                document.getElementById('fb-root').appendChild(e);
              }());
            </script>
     
  12. blacksticks

    blacksticks Newbie

    Joined:
    Sep 30, 2010
    Messages:
    15
    Likes Received:
    2
    And the reason you are getting the red error message is if you are not signed into facebook, or you have a non-email-verfied facebook account signed in at the time.
     
  13. Teddie

    Teddie Registered Member

    Joined:
    Feb 22, 2009
    Messages:
    86
    Likes Received:
    2
    Hmmm, I have a problem.. When I tried to create a new facebook application. It told me that I should verify my account via mobile or credit card.

    However, My Mobile network is not suppoted by facebook and I never seem to get the damn SMS with the confirmation code.

    http://www.facebook.com/mobile/?settings

    Can anyone help me with that, please?
     
    Last edited: Sep 30, 2010
  14. omgamandaa

    omgamandaa Registered Member

    Joined:
    Jul 25, 2010
    Messages:
    58
    Likes Received:
    5
    Occupation:
    Zaxbys, Internet Marketing
    Location:
    ATL, GA
    These sites are getting popular, i see.

    Maybe you should try finding a real script to purchase thatll work. idk?
     
  15. redstone.1337

    redstone.1337 BANNED BANNED Jr. VIP Premium Member

    Joined:
    Dec 30, 2009
    Messages:
    1,259
    Likes Received:
    999
    Any idea how to monetize these sites except from Adsense?