Get PID from FBID

<?php include(“lib/facebook.php”); $APPLICATION_ID = “xxxxxxxxxxxxxxx”; $APPLICATION_SECRET = “yyyyyyyyyyyyyyyyyyyyyyyyyyyy”; $facebook = new Facebook(array( ‘appId’ => $APPLICATION_ID, ‘secret’ => $APPLICATION_SECRET, ‘cookie’ => true )); $fbid=”xxxxxxxxxx”; $fql = “SELECT pid FROM photo WHERE object_id=”.$fbid; $param = array(  ‘method’ => ‘fql.query’,  ‘query’ => $fql,  ‘callback’ => ” ); $fqlResult = $facebook->api($param); $fql = “SELECT src_small, src_big FROM photo WHERE … Read more

fbsocialmarketing.com

FB Social Marketing is a Social Media Marketing company specializing in the development of Facebook Fan Pages for your business. Be sure to check out complete line of training videos. I have partnered with Shelle Kind of fbsocialmarketing.com and we have released the Amazon S3 / EC2 Solution for Facebook fanpage apps.

Save Facebook Profile Photo

<?php $facebook_uid = ‘100000296428149’; $sourcecode = save_facebook_profile_photo($facebook_uid); print_r($sourcecode); file_put_contents(“images/”.$facebook_uid.”.jpg”, file_get_contents($sourcecode[‘url’])); //this is name of new file that i save function save_facebook_profile_photo( $id ) {     $options = array(         CURLOPT_RETURNTRANSFER => true, // return web page         CURLOPT_HEADER => false, // don’t return headers         CURLOPT_FOLLOWLOCATION => true, // follow redirects         CURLOPT_ENCODING => “”, // handle all encodings         CURLOPT_USERAGENT … Read more

Amazon S3 & Facebook Fanpage app

I want to link Amazon S3 https object like “https://s3.amazonaws.com/bucket/index.html” to facebook iframed fan page… But it returned error…. 405 Method Not Allowed Code: MethodNotAllowed Message: The specified method is not allowed against this resource. ResourceType: OBJECT Method: POST RequestId: XXXXXXXXXXXXX HostId: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX OR PreconditionFailedAt least one of the pre-conditions you specified did not holdBucket … Read more

How to check Facebook Application is Alive or Dead?

<?php include(“facebook.php”); $APPLICATION_ID = “”; $APPLICATION_SECRET = “”; $facebook = new Facebook(array( ‘appId’ => $APPLICATION_ID, ‘secret’ => $APPLICATION_SECRET, ‘cookie’ => true )); $fql = “SELECT api_key FROM application WHERE app_id=” . $APPLICATION_ID; $param = array(  ‘method’ => ‘fql.query’,  ‘query’ => $fql,  ‘callback’ => ” ); $fqlResult = $facebook->api($param); if(isset($fqlResult[0][‘api_key’]) && $fqlResult[0][‘api_key’]!=””)   echo “This app is … Read more