Tuesday, March 22, 2011

Vimeo Video Crawling

  1. API
    http://vimeo.com/api
  2. Advance API
    http://vimeo.com/api/docs/advanced-api
  3. Video Search Function
    http://vimeo.com/api/playground/vimeo.videos.search

Dailymotion Video Crawling

  1. API
    http://www.dailymotion.com/doc/api/index.html
  2. PHP SDK
    http://www.dailymotion.com/doc/api/sdk-php.html#sdk-php
  3. Advance API Reference
    http://www.dailymotion.com/doc/api/advanced-api-reference.html#advanced-api-reference
  4. Need to call "video.list" function and parameter should be "search (string) - A search query"
  5. API Documentation
    www.dailymotion.com/doc/api/DailymotionAPIs.pdf

Wednesday, March 16, 2011

YouTube Video Crawling

Hi Guys,

I got the chance to work on YouTube API so thought that I should share the useful links so that it saves your time.
  1. YouTube API
    http://code.google.com/apis/youtube/getting_started.html#data_api
  2. Get search term feed
    http://gdata.youtube.com/feeds/api/videos?q=internet&v=2 (include the video id also)
  3. PHP Guide
    http://code.google.com/apis/youtube/2.0/developers_guide_php.html
  4. YouTube API with PHP
    http://www.ibm.com/developerworks/xml/library/x-youtubeapi/
  5. API Parameters
    http://code.google.com/apis/youtube/2.0/developers_guide_protocol_api_query_parameters.html#Searching_for_Videos
  6. Guide to display Videos
    http://code.google.com/apis/youtube/2.0/developers_guide_protocol_displaying_list_of_videos.html
  7. Custom YouTube Video Player
    http://tutorialzine.com/2010/07/youtube-api-custom-player-jquery-css/
 Hope this links help you to save your time :)

Thursday, February 24, 2011

Infinite loop in Facebook Application

Replace this line
$fb_user_id = $facebook->require_login();
to
$fb_user_id = $facebook->require_login($required_permissions = 'publish_stream');

You may change the permissions as per your requirement.

How To Resize iFrame & Remove Scrollbar From Your iFrame Facebook App?

If you are looking for PHP SDK Click Here to download it.

Code I used to remove the scrollbar from facebook application is this:
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript">
function framesetsize(w,h){
    var obj = new Object;
    obj.width=w;
    obj.height=h;
    FB.Canvas.setSize(obj);
}
</script>
<body onload="framesetsize(500,2100)">
    <div id="fb-root"></div>
    <div style="height: 2000px">
    </div>
</body> 

Make sure you set the facebook application setting to AutoResize, to do so follow this instructions:
  1. Login to your Facebook account
  2. Go to Developer panel
  3. Go to your application
  4. Click on Edit Setting
  5. Click on Facebook Integration Tab
  6. Select IFrame size to Auto-resize
Hope this help you to get rid of scrollbars :)