Search for public facebook pages / workaround? - facebook

Currently there does not seem to be an official way to search for public pages via API. We found out that we can search for places (e.g. search?type=place&q=company_name) but this only includes pages that are stored as a place.
Is there any third party API or other solution, how to get the same results like from https://www.facebook.com/search/pages/?q=company_name
With this URL the problem is that it requires a valid Facebook login. I want to avoid to create fake users and login via cURL and parse the results. This is really bad and risky.
This would really help ... we googled hours and did not find anything!

Related

Get a notification when a facebook page post is made

I follow a facebook page which has some interesting posts and they post regularly. I want to write a python script that gives me a notification whenever the page posts something. Is there a way I can accomplish this in Python?
I have searched a bit, seems like graph API is the way to go. However, all the tutorials I have seen online give a way to scrape some data or get post information. I do not seem to figure out a way to detect when a new post is made.
How should I accomplish this task?
Notifications for changes or new posts can only be made with Webhooks - which are only available if you manage the Page. Scraping is not allowed on Facebook, so there is no way to get notifications for Pages you do not manage.
You could only check with the API on a regular basis, but you would need Public Page Content Access for that, and you may have a problem with API limits if there are many Page Posts or Pages you want to check.

Get the post feed of a public facebook page

I'm working on an app and I need to pull in the public posts from the page of a business. I do not want users to login or send any information back to Facebook, I just need the posts so they can be shown in a read-only format.
I've looked around and from what I've read, Facebook offers ways to authenticate your connection to the API, but for security reasons you shouldn't make the calls directly from your app. I've seen something called a client token mentioned, that is assumed to be insecure, but I can't find much mention of it outside of https://developers.facebook.com/docs/facebook-login/access-tokens. It says it can be found in the app dashboard, but I have not been able to find it.
How do you make a call to get the posts of a public facebook page from an iOS app?
I ended up finding something that wasn't quite what I was looking for, but still got the job done: Facebook Page Plugin
It lets you embed the publicly available feed of a Facebook page into a web page. If you want to use it in an app you can host the web page that has the feed code in it and then load it into a web view in the app.

Facebook business page creation via API

I want to create a facebook business page programatically via their API.
I looked at each of the technologies listed on developer.facebook.com but there is nothing that i can use to create a new page.
After alot of googling i found out that it seems to be impossible to create a page programatically. And i almost gave up, but then i found
https://www.pagemodo.com
Testing their service i see that they can actually create a new one and looking trought their javascript files it seesm they do it on the backend.
After reading some more i found about the new facebook business API ( https://developers.facebook.com/docs/reference/ads-api/businessmanager ), and i got nowhere with that either.
I am on the verge of believing that it's impossible, but having the working example on pagemodo makes me unable to give up :D .
[Possible Solution 1]
Another ideea that i have on how to achieve this is to
manually create a number of template pages on my account (not published).
add that user as an admin to one of the pages via API [*]
remove myself from the administration via API [*]
edit the page title/description/etc. via API
publish the page via API
For the normal users, it will look like the page was created auto,so this could work. But the problem is that i couldn't find anything in the API to make the [*] operations work.
Any help appreciated
It's possible. You need to get your Facebook App whitelisted to get access to page creation apis.
It is not possible to create business pages via the public Facebook API.

Scope of Facebook's Graph API search

I am using the Facebook Graph API through the Javascript SDK to search for users. However, when I try to find a user that has a protected profile it does not show up in the search results. Which I find weird because if I use the Facebook website to look for the same user using the default search bar, the user DOES show up. Is there any solution to find a user in a better way?
Could you be more specific? How do you search for the users, what users are you searching for? As a general rule, if you need something more than basic information provided by Graph API, you will need user's permissions (as in getting their e-mail address and so on).

How can PiPL.com Perform a Public search on Linkedin.com

I am developing a online reputation website and i am interested in knowing how pipl searches on linkedin.com without Oauth. Can anybody tell me a way to search for people on Linkedin.com and Facebook.com without oAuth(if not API , any other way?)?
The only way Facebook allows you to do it is if you get their permission. You have to fill out this form: http://www.facebook.com/apps/site_scraping_tos.php
From what I understand they don't really give that permission out unless you are already a reputable company and will block you pretty quickly if you are crawling their site without the permission.
I assume that for linkedin you only have to follow their robots.txt file which can be found here: http://www.linkedin.com/robots.txt