![]() |
|
|
|
||||||||||
![]() |
|
|
Thread Tools |
|
#1
|
||||
|
||||
|
Feed in Facebook Application (Giving away $5 for helping)
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: Code:
<?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"; And here is a php code for SimplePie feed : Code:
<?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>
Thanks |
|
#2
|
||||
|
||||
|
Till no one has replied to my question
![]() I am increasing the money from $5 to $6 Please help its urgent |
|
#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
|
|
#4
|
||||
|
||||
|
Thanks dude....
|
|
#5
|
||||
|
||||
|
No need to pay you will get proper response soon till then wait.
__________________
GET FREE Models & Actress Hot Pics Bikini Pictures | Free premium wordpress themes |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Very simple php problem. | bugzy | PHP | 1 | Jul 28th 2009 9:30 am |
| Simple PHP problem | nile1483 | PHP | 6 | Jan 6th 2008 4:56 am |
| Simple PHP Problem | nickharper | PHP | 1 | Oct 11th 2007 5:35 am |
| Simple PHP Problem | panda46 | PHP | 3 | Oct 6th 2007 2:35 am |
| Simple PHP problem (HELP!) | primeelite | PHP | 8 | Sep 14th 2007 4:57 am |