$feed->set_feed_url(array('http://chrisheadleand.com', 'http://glaciem-world.com/feed/'));
$feed->set_autodiscovery_level(SIMPLEPIE_LOCATOR_ALL);
Is there any reason in simplepie why these domains wont parse into a HTML page? The only RSS I seam to be able to get simplepie to work with so far is the twitter RSS feeds
eg
http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=thenextweb
I need to get this working (with autodetect) for rss feeds from wordpress and blogger websites..
Can anyone point me in the right direction?
Cheers
CJ
Update
I figured out how to get the error messages from sinmplepie
I'm now getting the follwoing information
http://www.clearthemist.com/test/
Can anyone explain what this means and how I can fix it.
The url I'm using is http://chrisheadleand.com - It works fine on simplepies web demo but not on my site. I have tried two different versions of simplepie with no better results.
Simple answer to this one is that there seams to be a problem with simplepie if the header information in the RSS feed is slightly unconventional. I unstalled the latest version of wordpress and it worked fine.
Cheers for reading!
Related
I want to read the rss feed for my videos from Vimeo using a PHP script so I can update a database table with video data, however even though I can read the feed in my browser, Vimeo returns a 500 error.
I looked at their API documentation which is about as clear as mud and wants me to create an API. I don't want an API for visitors to use, I just want to read a feed (which would normally be simple using curl.
I haven't found any help at all from their documentation, hopefully someone could make it a bit clearer for me please.
Thanks in advance.
I finally managed to resolve this. Feeling rather dumb now, the content of the curled rss feed from Vimeo did not display on the screen when echoed because of some of the content. It was however returned. I needed to view the screen source to see the content.
We want to add an activity feed for a Facebook page as a widget to our Wordpress blog. This seems like it should be a simple thing to do, the Facebook documentation refuses to yield the relevant description though. It seems like 'perhaps' an app is required, although maybe not...
Any tips much appreciated.
Toby
You can grab an RSS feed from a facebook page through the graph API; which will be written in XML
Edit:
Most of the necessary steps are outlined here: http://sem-group.net/search-engine-optimization-blog/subscribe-to-your-favorite-facebook-page-via-rss/
Although you'll need to get the id of your page as part of the steps above.
To get Facebook page id: http://rieglerova.net/how-to-get-a-facebook-fan-page-id/
Wordpress seems to have its own specific plugin for importing RSS feeds:
http://wordpress.org/extend/plugins/rss-import/
(P.S. IF you find that this answers your question would there be any chance you could accept it?)
After much struggle with getting Facebook to yield it's RSS feed for a page, it seems as though my futility levels have reached their peak.
JSON seems to work absolutely dandy for me and so to this end I am curious as to whether there are any plugins that would import FB JSON as blog posts since it seems that RSS XML's either going away or seriously b0rked. Can anyone recommend any plugins to accomplish this?
Another way to import facebook post in your blog is to use http://www.social2blog.com/ but work only with facebook page. Otherwise you can create your own php script:
get the post in json format from Facebook ( https://developers.facebook.com/docs/graph-api/reference/v2.0/post ) but first you need to know how get access token.
for each facebook post insert a relative wordpress post using wp_insert_post
Unfortunately after having suspicions confirmed, Facebook has killed this feature. A solution has been recommended here: https://stackoverflow.com/a/9778635/320681
Do you mean something like this: FeedWordPress.
It syndicates content from feeds that you choose into your WordPress weblog. Hope it helps
I have a non-programming answer to this old question. I'm adding it here in case it helps. OK, I started looking for complicated programming solutions involving SDKs and APIs or even plain old WordPress plugins. But it's frustrating, especially as there's a lot of out of date information out there.
It's really simple. Just use IFTTT. I had to create two recipes, one for normal FB posts and one for FB photo posts. But both worked right away, the FB posts appeared as plain WP posts in my WordPress dashboard, absolutely no problem and surprisingly simple.
Create an app then get proper permission from page admin to read the facebook page feed.Refer this documentation.
https://developers.facebook.com/docs/reference/api/
Problem with this method is you have to run a cron job and pull the data from Facebook.
I am using XAMPP and was wondering if I can code my site to include RSS feeds. Would the codes work and can I test it if I am working on a local server?
I am practicing using the OReily head First PHP/Mysql book and I'm on the chapter on RSS and getting RSS videos from youtube.
You can create a RSS feed and test it locally, no problem. In the end it is not different from testing your other pages besides that the URL pointing to the RSS feed does not return HTML but XML.
You can make a feed, but you have to upload them online, so other people can see and use them.
But it will work similar to online-version on localhost.
Why don't you just test it?
Usually there is no problem with getting RSS
But if there will be one - that will be time to come here to SO with the question
if you want to make your own RSS feed, it's not a big deal too. RSS is the same markup as HTML.
On a website I am maintaining for a radio station they have a page that displays news articles. Right now the news is posted in an html page which is then read by a php page which includes all the navigation. I have been asked to make this into and RSS feed. How do I do this? I know how to make the XML file but the person who edits the news file is not technical and needs a WYSIWYG editor. Is there a WYSIWYG editor for XML? Once I have the feed how do I display it on my site? Im working with PHP on this site so a PHP solution would be preferred.
Use Yahoo Pipes! : you don't need programming knowledge + the load on your site will be lower. Once you've got your feed, display it on your site using a simple "anchor" with "image" in HTML. You could consider piping your feed through Feedburner too.
And for the freeby: if you want to track your feed awareness data in rss, use my service here.
Are you meaning that someone will insert the feed content by hand?
Usually feeds are generated from the site news content, that you should already have into your database.. just need a php script that extract it and write the xml.
Edit: no database is used.
Ok, now you have just 2 ways:
Use php regexp to get the content you need from the html page (or maybe phpQuery)
As you said, write the xml by hand and then upload it, but i havent tryed any wysiwyg xml editor, sorry.. there are many on google
Does that PHP site have a database back end? If so, the WYSIWYG editor posts into there then a special PHP file generates an RSS feed.
I've used the following IBM page as a guide and it worked wonderfully:
http://www.ibm.com/developerworks/library/x-phprss/
I decided that instead of trying to find a WYSIWYG for XML that I would let the news editor continue to upload the news as HTML. I ended up writing a php program to find the <p> and </p> tags and creating an XML file out of it.
You could use rssa.at - just put in your URL and it'll create a RSS feed for you. You can then let people sign up for alerts (hourly/daily/weekly/monthly) for free, and access stats.
If the HTML is consistent, you could just have them publish as normal and then scrape a feed. There are programatic ways to do this for sure but http://www.dapper.net/dapp-factory.jsp is a nice point and click feed scraping service. Then, use either MagpieRSS, SimplePie or Feed.informer.com to display the feed.