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?)
Related
I would like to show the last 8 images from my Instagram profile on my website.
I've just spent the last hour looking for info on this but can't find anything recent information anywhere. I can't believe something as simple as showing my latest posts can be so complicated!
I have custom built our site using HTML, PHP and jquery. I'm not interested in paid 3rd party software and Wordpress/Shopify plugins aren't relevant to me.
I'm in the same situation if it can reassure you!
Indeed according to my research I think that Instagram have put their APIs on hold because of the Metaverse and the takeover by Facebook etc...
So it is currently impossible to display our instagram news feed on our sites, whether in PHP or JS...
It's quite compelling...
I´d like to use the Facebook Comments plugin for my website.
As Facebook is offering this as an iFrame, the actual comments are not part of my content.
Therefore I am looking for a solution to read the comments and render them into my website.
So far with no luck.
There is an older article, which also links to code that seemed to work.
https://moz.com/blog/make-facebook-comments-box-indexable-by-search-engines
However, changes on the Facebook side seem to have made that code unusable. Has anyone found a new solution for this?
Maybe via curl or file_get_contents or even the official API?
Please note, I am referring to the comments plugin for URLs (https://developers.facebook.com/docs/plugins/comments/)
not comments from Facebook Pages or Profiles.
I'm trying to find some information/documentation on creating a custom Facebook feed for any website. (Custom css etc) but there is nearly nothing to find. I want to read posts from a public facebook page and display them on my website in an owl carousel.
The only guide I found was outdated since facebooks developers page completely changed and the other guides are all for Wordpress.
Does anyone know any good guides, or can anyone help me in the good direction?
Thanks
Example code and information can be found in the API reference:
https://developers.facebook.com/docs/graph-api/reference/page/feed#read
I suggest using an App Token on the server, it is valid forever. If you don´t know about the different Tokens, here are some links:
https://developers.facebook.com/docs/facebook-login/access-tokens
http://www.devils-heaven.com/facebook-access-tokens/
Side Note: To get pictures, you can use the full_picture field: /page-id/feed?fields=full_picture
I am looking at importing Facebook posts and not just embedding a Facebook iframe in the page. I want to be able to get the SEO benefits of having my website news page updated all the time by my Facebook page and I believe if I just use the Facebook embed code this wont work to improve it ?. Does anyone know of a tutorial or plugin for importing posts / pics into a php based website ?.
Thanks
Iain :-)
For this you may want to look at their graph api, https://developers.facebook.com/docs/reference/api/post/
https://developers.facebook.com/blog/post/490/
you need to authenticate to facebook and retrieve the post using the api
or you can use their plugin to display the fanpage posts on your website, it's much simpler.
Social2blog ( http://www.social2blog.com/ ) import facebook posts in your blog, with a creation of Wordpress post and then with real SEO benefits. Furthermore Social2blog permit to decide if you want to point the canonical url to Facebook post. The problem with Social2blog is that it works only with facebook page. Otherwise you can create your own php script, please refer to:
How to pull in Facebook Page posts as blog posts to WordPress?
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.