Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Facebook SDK for PHP

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 150
    Comment on it

    Hello Readers ,

    The following code demonstrate how you would accomplish common tasks with the Facebook SDK for PHP.

    This SDK can be use in facebook login , Retrieve a user's profile , Post a link to a user's feed.

    window.fbAsyncInit = function() {
        FB.init({
        appId      : appid, // replace your app id here
        channelUrl : URL of site, 
        status     : true, 
        cookie     : true, 
        xfbml      : true  
        });
    };
    (function(d){
        var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
        if (d.getElementById(id)) {return;}
        js = d.createElement('script'); js.id = id; js.async = true;
        js.src = "//connect.facebook.net/en_US/all.js";
        ref.parentNode.insertBefore(js, ref);
    }(document));
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: