Export list of relevant public Facebook group/pages URLS - facebook

I am attempting to export a list of URLS all Facebook groups and pages relevant to a search query.
At present, if I search the term ("parents") in the search bar on Facebook, the drop down list is populated, but I cannot find a way to capture these links, and to do so at a large scale (given that there are thousands of groups/pages which include the term "parents")

You can't do that and should not do that. See also the Automated Data Collection Terms. It's not allowed by Facebook.

Related

Retrurning extra fields using the facebook search API

I'm using the facebook graph API to search for all public business within a certain range based on location. I want to return some extra fields, specifically the 'hours of business' but can't see how I can do this?
`search?q=&type=place&center=-33.8650,151.2094&distance=5000'
I realize you can add extra fields in the graph API tool but that is only for things that you have a connection to. Whereas I want to query all 'public' businesses therefore it looks like I'm restricted to use the search functionality
You can use the fields parameter to specify fields you want to see... search?q=&type=place&center=-33.8650,151.2094&distance=5000&fields=hours

Facebook URL Graph Search - Page Queries

I am looking to generate a list of URLS or FB ID's for a set of existing Facebook Pages. Ultimately the initial query I am looking to run is simple: Find all NEW facebook pages created in City XYZ.
The term NEW, is open to interpretation. It could mean "Created this month" Or newer relative others in a set (these details are not important at the moment) . Also, "Pages" refers to fan pages (not user profiles).
I have identified 3 possible approaches. Both of which I am hoping to get some input on. Regarding feasibility and process.
Option 1) Somehow leverage Facebook's Graph API and develop some time of web application to generate a list of all Pages, then filter by city, then filter by date created.
Option 2 (Best Case)) Write or generate a custom Graph Search URL with embedded search criteria and leverage FBs existing search feature to get results. A great example of this approach is used by the tool searchisback.com. Only this tool is used to do advanced searches on People, but I need advanced searches on Pages.
Option 3) Locate a tool that already does this that I can use.
I again hoping to get some input and possible some direction/recommendations.
I should also mention that I actually know very little about Facebook APIs and Facebook Development. My position right now is of some who knows what they want to do, but no idea how to do it.
Option 1: Not possible, you can only search for Pages by name, the Graph Search is not available with the API. Those are all the options: https://developers.facebook.com/docs/graph-api/using-graph-api#search
Option 2: See answer to option 1.
Option 3: There are tools that list Pages, but they all have to add them manually. So there is not really a tool that does what you want to achieve.
In short: What you want to do is not possible.

Facebook - interests required List<unsigned int32> although Page ID are strings

I currently developed a solution for custom uploading videos for specific customers.
One of my customers need the ability to specify "interests" for a video he upload.
From the API documentation, interests are:
interests
list
One or more IDs of pages to target fans of pages.Use type of page to get possible IDs as find Targeting Options and use the returned id to specify.
There is some mis-documentation regarding this feature: "find Targeting Options" does not talks about type=page.
But, still, I can search for page, using the "search" endpoint: /2.5/search?q=gsw&type=page and get the ID of the page.
As to my understanding, I can specify a page, for example "Golden State Warriors" fan page, specify its id, and then every user which follows this page will be considered as interested in my post.
So, I think my flow should be:
1) Search for the requested page using the "search" api. Get the page's IDS.
2) When creating the video, specify the ID in the "interests" parameter list.
Now, I need to know how to specify the ID in the interests list - The documentation says it list, but the page ID as a number string...
So in conclusion, I would like some help in verifying that all that I have written is correct and make sense, and also to know how to get the int32 id of a page - is it just mistake in the documentaion?
Thanks!

Google Analytics API, filter by parameter

Our app uses the Google Analytics Rest API. We'd like to get the number of page views generated by different links to the site.
For example, one link to our site might be:
http://oursite.com?linknum=12345
and another might be:
http://oursite.com?linknum=23456
We'd like to track the number of page views by all visitors who click on each link, so we need a way to filter by parameter.
So far, we just get the number of page views for all visitors without any filters:
curl 'https://www.googleapis.com/analytics/v3/data/ga?ids=ga:(our id) &metrics=ga:pageviews&start-date=2014-4-26&end-date=2011-12-08&access_token=(our access token)'
The best way to learn the API is to use the query explorer at
http://ga-dev-tools.appspot.com/explorer/
For your analysis, add dimension=ga:pagePath and sort=ga:pageviews.
In addition, you could ask for pages which match a filter expression.
For example filter=ga:pagePath=#linknum to only include pages with linknum.

Is there any way to link Facebook Graph data with other data sources (Freebase, DBPedia)?

I have a set of Interest and Likes data from Facebook that I'm interested in enriching with data from other sources, namely Freebase. Is there some way to identify which entry within Freebase cooresponds to a given entry within the Facebook Graph?
Firstly, Facebook Graph does not offer any links to external sources, so it seems any sort of relationship needs to be found within the external source. I've found that, at least for some entries, Freebase offers a 'Facebook URL' and thus in a roundabout way you can link the two. For example for the band 'Taking Back Sunday', here is the Facebook Graph URL:
https://graph.facebook.com/23854511408
... which alternatively can use the vanity URL:
https://graph.facebook.com/TakingBackSunday
now in Freebase if I view the Taking Back Sunday entry in RDF format (http://rdf.freebase.com/rdf/en.taking_back_sunday) or JSON format I can see a link to the Facebook vanity URL. Assuming this attribute is queryable by MQL then linking Freebase to Facebook Graph via this method is possible. However the problem is that many entries in Freebase do not have a link to Facebook.
Any ideas on if there's a consistent way to discover these connections?
Create a spreadsheet out of your list of Interests and Likes with a column for the name and FB graph URI.
Load the spreadsheet into Google Refine.
Reconcile the name column with Freebase.
Create a new column for the Freebase URI based on your reconciled name column using the following GREL code:
"http://rdf.freebase.com/ns/" + cell.recon.match.id[1,-1].replace("/", ".")
Export your augmented data to a new spreadsheet.
If you can get the Facebook graph data into RDF format and if you're interested in connecting particular kinds of entities (e.g., bands) across the datasets, then you can use a link discovery tool like Silk. You write a mapping that tells Silk how to compares the name, genre, hometown etc., and Silk will calculate the connections. This requires quite a bit of effort though.
Another option might be to use Google Refine, which has a “reconciliation” feature that can discover Freebase entities that match your data. The challenge is again how to get the Facebook data into Google Refine.