Feed in Facebook Application (Giving away $5 for helping)

Discussion in 'PHP' started by naviarora2007, Nov 3, 2009.

  1. #1
    Hello friends,

    I want to develop a simple facebook application for my educational site which will contain only feed from my site.

    I want to use SimplePie for it and i am able to run it at http://bit.ly/4kSJW4

    But now i don't know how to use it in facebook application, below is the structure of it:

    <?php
    require_once 'includes/facebook.php';
    
    $appapikey = 'b20115866dd77de8a24fcnbs9sh3dsjh';
    $appsecret = '2c28b231d93b96a9365f7f8f9heu4h8d';
    $facebook = new Facebook($appapikey, $appsecret);
    $user_id = $facebook->require_login();
    
    echo "<p>CBSE News</p>";
    echo "php code to retrieve feed here";
    
    Code (markup):

    And here is a php code for SimplePie feed :
    <?php
    require_once('/feed/simplepie.inc');
    $feed = new SimplePie('http://www.site.com/feed');
    $feed->handle_content_type();
    $feed->set_cache_location($_SERVER['DOCUMENT_ROOT'] . '/home/user/public_html/facebook/feed/cache/');
    
    ?>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
            "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
     
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    </head>
    <body>
         <ul><?php
    	foreach ($feed->get_items() as $item):
    	?>
    
    		<div class="item">
    			<li><a href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a></li>
    		</div>
    
    	<?php endforeach; ?> </ul>
     
    </body>
    </html>
    Code (markup):
    Just tell me what to add in facebook app to retrieve feed from simplepie.

    Thanks
     
    naviarora2007, Nov 3, 2009 IP
  2. naviarora2007

    naviarora2007 Active Member

    Messages:
    163
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Till no one has replied to my question :(

    I am increasing the money from $5 to $6

    Please help its urgent
     
    naviarora2007, Nov 4, 2009 IP
  3. articledirectory

    articledirectory Peon

    Messages:
    1,704
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Is the app allready set up, do you just require help intergrating the feed code?
    If so give me a shout with more details and ill help set it up for you
    dont need paying ;)
     
    articledirectory, Nov 5, 2009 IP
  4. naviarora2007

    naviarora2007 Active Member

    Messages:
    163
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Thanks dude....
     
    naviarora2007, Nov 10, 2009 IP
  5. miles2go

    miles2go Peon

    Messages:
    567
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    No need to pay you will get proper response soon till then wait.
     
    miles2go, Nov 12, 2009 IP