So it seems that Facebook has deprecated the public JSON and XML feeds for profiles (https://www.facebook.com/feeds/page.php?format=json&id=[id]).
I have a client's website that was grabbing a simple facebook feed for display on the homepage. They own the facebook page they want to feed from.
I understand I'm supposed to use the Graph API. But it doesn't seem possible without authentication. Is there any way to pull this data without generating a temporary token each time? Asking the user for facebook access every time they open this separate website seems like a really bad user experience.
This seems to be a recent deprecation on the part of facebook (Did Facebook recently disable accessing public page feeds via uri?). Any help is greatly appreciated. Thanks!
For display public informations without authentifcation in Json, create a app to facebook graph.
You just need :
Facebookappid
Facebookappsecret
Facebookpageid
And use this url :
https://graph.facebook.com/Facebookpageid/feed?access_token=Facebookappid|Facebookappsecret
and Tada, you can see the public feed in Json.
Hope help someone.
Thanks #WizKid, that helped! More specifically it looks like I needed to find a permanent page access token. This page had my answer: facebook: permanent Page Access Token?
Related
I'm new to iOS development and I'm trying to make an app that tracks my student loans. I would like to have the app simply display a balance found on the loan's website and build on that behavior. I've got my app to open up safari to the website but I'd like more of a web-crawling behavior so it's done in the background. This web-crawler needs to be able to login to the website and then find a field with the loan balance value..
I've looked up several ways on how to do this but I can't get any of them to work with my novice level of experience with swift. If anyone has a recommendation and a direction to go with this, that would be great.
Thanks in advance!
I've written an app to get my uni's schedules, payment records, and grades by bypassing the login and gain access to API used by the website.
The step you could take are probably very similar to mine
Find out how the website authenticate its users (could be by cookie, session id's etc) You need to have some knowledge on web too. You can use the network tab on Chrome/Brave/Safari or any other browser to see what the website is doing when you click on 'login' for example. You could use Charles too, 30 days of trial should be enough.
After authentication succeed, track what API route the website use to get the datas to html. See what information you need to access the API route. Postman would be very handy to see the JSON response by the API.
To parse the response, you can use URLSession or networking library like Alamofire to get the job done.
If you want to see how I did it, here's the GitHub repo.
I'm just making a simple widget where I can display my facebook feed as customized, like grid view.
When I was submitting for app review, there was so much permission when it was my own feed only. I have no plans for visitors to like login into my site. It's just my own feed on my site on grid view.
Are there other simple ways to do this rather than graph API? Simply to get my facebook feed as JSON.
If it is just for your own account, you do not need review. Review is only neccessary if you want to enable other users to use your App - or, for example, if you want to get data of Pages you do not own.
Just use a User Token with the correct permissions to get your account data with the Graph API.
I am a naive user.
There is this website which is a really important source of information for my business.
To monitor the websites, I convert them to RSS feeds using page2rss service and then monitor feeds in IFTTT.
However, this particular site does not use static web pages and generates data response to API Calls:
Here is a sample API Call:
https://www.mpeproc.gov.in/ROOTAPP/GetTenderFreeView.jsp?Department=Urban%20Administration%20and%20Development%20Department&company=MPSEDC
Is there a way by which I could record the response from this call to an html page on my server? or is there any other way to monitor such dynamic pages.
There are solutions but not simple ones. The first page uses JavaScript to create a FORM which it then submits. You can simulate this with the command line tool curl; see https://superuser.com/questions/149329/what-is-the-curl-command-line-syntax-to-do-a-post-request
But take note that many sites don't like scraping; if they notice what you're doing, you may end up on a blacklist. So it's better to ask the site's owner for permission before you aim automated tools at their precious data.
How to retrieve Posts by Others on a public Facebook page in JSON format?
For example, Stackoverflow Facebook page. How to get JSON data that contain posts from Stackoverflow facebook fans on the page? So, I can list them on my web, android application or etc..
Any help would be greatly appreciated.
you should be able to retrieve posts with me/feed and a valid access token. Should that not work, try with pageid/feed and a valid access token. That will return all posts (status updates included). You can filter them in many ways. This is the method with graph API. Otherwise there's FQL Query. I hope this helps.
Currently I'm using Facebook's Graph API and the PHP SDK to retrieve information and recent wall posts from a Business Page.
Included in this data is public information such as name, address and phone number. Whilst public email address can be seen on the page when you visit it on Facebook, it does not appear on the public Graph API (with or without an access token).
Is there a way to retrieve the public email address that I have missed out on?
I suppose I'm aware that technically it's possible to scrape the page, but that's not an elegant or reliable solution.
Link to example Facebook Page
It seems that at this time there is no way to retrieve the publicly available email address using the Graph API without ugly screen scraping.
From looking at the graph-api documentation it doesn't look like email is available.
Here's Wir Machen Cupcakes information from the graph-api.