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
    • 189
    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.

    1. window.fbAsyncInit = function() {
    2. FB.init({
    3. appId : appid, // replace your app id here
    4. channelUrl : URL of site,
    5. status : true,
    6. cookie : true,
    7. xfbml : true
    8. });
    9. };
    10. (function(d){
    11. var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
    12. if (d.getElementById(id)) {return;}
    13. js = d.createElement('script'); js.id = id; js.async = true;
    14. js.src = "//connect.facebook.net/en_US/all.js";
    15. ref.parentNode.insertBefore(js, ref);
    16. }(document));

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: