skip to main | skip to sidebar

Facebook Application

Monday, July 28, 2014

True !!!



Posted by Kumar Anubhav at 11:39 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Eid Mubarak

Posted by Kumar Anubhav at 10:39 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)
Blogger Widgets
?
+
X

Recommended for you

Loading..
loading

fb upl

WebSpeaks.in | Upload images to Facebook $appId, //your facebook application id 'secret' => $secret, //your facebook secret code 'cookie' => true )); $user = $facebook->getUser(); if(is_null($facebook->getUser())) { header("Location:{$facebook->getLoginUrl(array('req_perms' => 'user_status,publish_stream,user_photos'))}"); exit; } /******************Configuration options***********************/ if($_SERVER['REQUEST_METHOD'] =='POST'){ $img = realpath($_FILES["pic"]["tmp_name"]); // allow uploads $facebook->setFileUploadSupport("http://" . $_SERVER['SERVER_NAME']); // add a status message $photo = $facebook->api('/me/photos', 'POST', array( 'source' => '@' . $img, 'message' => 'This photo was uploaded via www.WebSpeaks.in' ) ); echo '

Click here to watch this photo on Facebook.

'; } ?>

Select a photo to upload on Facebook.

Select the image:

Followers

Blog Archive

  • ▼  2014 (2)
    • ▼  July (2)
      • True !!!
      • Eid Mubarak
  • ►  2013 (1)
    • ►  July (1)

About Me

Kumar Anubhav
View my complete profile