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
Related
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 created a website than can post from my website to facebook using embeded post
https://developers.facebook.com/docs/plugins/embedded-posts
My problem is I need to get all the comment of that certain post.
I've read about the comment plugin
https://developers.facebook.com/docs/plugins/comments
but i don't think that it can solve my problem since it will only give me a comment box for my website, not the comments from their post.
how do I get all the comment of that embeded post? can someone give me a link that might help? thanks.
You have to use the proper Facebook Graph API supplied for web developers to embed and manipulate Facebook content in their applications.
Read the specific documentation here.
EDIT: This is the PHP SDK here and the Reference Documentation, with classes you may use to achieve what you want here. Read it all, understand how to implement it in your project and you'll be up and running.
New iOS developer here. I'm looking to build an app that uses a Wordpress database to populate a news feed, and I've found a good amount of info about grabbing posts from Wordpress but nothing about posting FROM the app TO the database. I know that the code can't be written here, but I was hoping someone knew where I could find how to do this or point me in the right direction. I planned on writing all of my new code in Swift also. Thanks in advance for any advice!
The easiest way to interact with Wordpress is by activating the jetpack api. You can then do almost anything you want. See the full documentation here: https://developer.wordpress.com/docs/api/
Reading data is easy. you only have to call the correct URL. If you wan to see a sample (written in swift) then have a look at:
https://github.com/evermeer/AlamofireJsonToObjects/blob/master/AlamofireJsonToObjectsTests/WordpressTest.swift
If you want to make updates, then you need to use Oauth2. Here are some libraries that could help with that: https://cocoapods.org/?q=oauth
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.