Location specific events from facebook - facebook-graph-api

Is there a way to obtain the "event" (or for that matter any publicly available object) from a particular area, say brazil using the facebook platform?
I understand that we need authentication to access data that are privacy protected. But events/pages are public right?(correct me if am wrong)
thanks in advance

You can use the Search API to search for public objects in a certain area: https://developers.facebook.com/docs/reference/api/#searching

Related

Access public data of other users using Instagram/Facebook API

I would like to access other users public data to show in my website when they configure the page by their username/id.
It means I will create an app on FB/Instagram side and with the help of this app's access token I would like to fetch public data of other user.
Is this scenario valid now? Earlier it was possible but I am not sure now with changes in policies. Even the documents are not clear enough which can say it's possible or not?
Has anyone tried this out recently?
Users: Only data of users who specifically authorized your App is available, depending on the authorized permissions. It does not matter if data of user profiles is public or not, you have to get permission from each user separately.
Pages: If you want to get data of pages you don´t own, you have to go through a review process with your App to get access to "Page Public Content": https://developers.facebook.com/docs/apps/review/feature/#reference-PAGES_ACCESS
That´s for Facebook, about Instagram you can just hit the docs (as well): https://developers.facebook.com/docs/instagram-api/business-discovery
My number one recommendation, in this case, is Facebook API or Instagram API from Data365. I may be considered biased since it is the tool I work for, but it is really a reliable tool you can get public profile data by users ID or username.
Of course, you can use the official Facebook/Instagram APIs for searching all public objects (post, user, page, event, group, place, check-in). But note, the official API has a number of restrictions. Andyrandy has already described them in his answer. Compared with official APIs, we do not have such restrictions.
Besides, our APIs provide such unique features as gender and age recognition (via face photos) along with identification of post reactions that give a competitive advantage in obtained analytics. Data365 APIs also enable developers to create monitoring tasks for a one-time or auto data update. And above all, we do not break the law but only provide web scraping within the legal framework.

is it possible to use Facebook Graph API to get just my own wall posts

I just want to know if it's possible to do the following:
To display some wall posts from my own facebook account in a php web page, without going through the granting-permission in the user interface level? Because from what I know, you need an access token to use the API, and to get an access token, you need to go through the granting-permission UI. So I am feeling impossible here.
I got my app ID and secret code ready, I just want to know for sure if what I want to implement is even possible to begin with.
Actually, you could change your privacy permissions so that your wall is completely public. The API is then able to access public information without being granted user authorization.
I was also searching the same, as I want to implement it in my project. Now I've got the answer of this. Yes, you can get posts as well as comments from your wall. If you want more details about same, comment below mentioning my name. :)

Facebook Graph API - Unable to access public fan pages

I am using the graph API to retrieve information and I have stumbled upon an issue where the Graph API won't return any information. The page I am referring to http://facebook.com/JubilationDanceMinistry which one can publicly access and see, however when I go to the Graph API URL: http://graph.facebook.com/JubilationDanceMinistry it is denied. I understand that Facebook explains this issue by saying it is by design.
We deliberately do not return a more specific exception for this case; the error message covers invalid IDs, non-existent objects, deleted objects, objects which are not visible to the caller due to demographic restrictions, objects not visible because the owner of the content has set privacy settings which exclude the caller, content not visible because the owner of the content has blocked the caller, because the owner of the content has disabled platform apps from accessing any information about their account, etc. (emphasis added)
So the reason is most likely that platform apps access has been disabled, however I see no setting for this anywhere, so I doubt this is the case. Does anyone have any advice what is going wrong here?
Thanks.
The page I am referring to http://facebook.com/JubilationDanceMinistry which one can publicly access and see
Not really – when I click on that link, I get taken to the FB home page, although being logged in to Facebook. So I think it’s fair to assume that this page is not publicly accessible, resp. that there are access restrictions in place (based on country maybe, because age and alcohol restriction should not keep me from accessing it).
And in those cases, you can only get access with a user access token – because that’s the only way for Facebook to verify that the requester is allowed to see the content.

general facebook question about graph api

I understand that an access token is needed to access an individuals private content when using the graph api. What is considered private in a fan page and do you need an access token to access all fan page content? When running a word search with type=posts in the graph api we expect only public content, is this the same for fan page searches and if not, is there really any need to have an access token when searching the graph api?
I have not finished my app yet but when just plugging into a browser
https://graph.facebook.com/search?q=watermelon&type=post
that works so why would I need to register my app. Should this not work if I set up a webrequest method?
Registering an app doesn't hurt, its easy and if something was to go wrong, they will suspend/ban your app ID rather than your server's IP. Better IMHO!

Retrieve comments Facebook users make as the Like a web page

I've been pouring over Facebook's Graph API but I can't seem to find any documentation with regards to retrieve comments users leave as they Like an Open Graph object (in my case, a web page with a Like button).
At a minimum, I would assume that there would be some way to retrieve comments from users whose privacy settings allow anybody to see their updates (I guess this might require me to know the UID of everybody who Likes my web page). Alternatively, there might be some method where user comments may be associated with the Open Graph object's stream instead.
Anybody?
To see a user's wall feed via the API (even public ones) you will to have them authenticate your app. Yeah, pretty crappy not to be able to query their public messages, but it is a current limitation of Facebook's API.