- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to get facebook feeds into NiFi?
- Labels:
-
Apache NiFi
Created ‎07-04-2016 06:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to get facebook data and store into my HDFS
- Ex. I have one #tag say Starbucks i need to get feeds from it as json file
- I'm newer in NIFI so please explain from beginning and read many posts regarding facebook need to start from getHttp
- which address i need to give to get feeds for particular tags.
- please show me properties with example
Thanks in advance
Created on
‎03-01-2017
02:00 PM
- last edited on
‎10-13-2019
06:39 AM
by
ask_bill_brooks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wrote this for basic facebook ingest
Created ‎07-04-2016 07:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'd suggest you to read the following posts:
- https://developers.facebook.com/docs/graph-api/using-graph-api
- https://developers.facebook.com/docs/graph-api/common-scenarios
- https://developers.facebook.com/docs/facebook-login/access-tokens
I'd try something like:
https://graph.facebook.com/search?q=%23YOU-HASH-VALUE&limit=10000&access_token=YOUR-ACCESS-TOKEN
Hope this helps.
Created ‎07-05-2016 10:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @Pierre Villard
I got some data but still having doubts
- I have created one app in facebook developer and using graph API explorer get my access token
- In my Gethttp, I use url as https://graph.facebook.com/v2.6/Starbucks&access_token=my_access_token
- i have to give at least a name of the file and i configure ssl (StandardSSLContextService)
- Finally i directly put into HDFS, after receive first file it shows error file already exist
My problem is how can i received as multiple json files and my access token is expired in specific time is thr any options to extend dynamically....please show me with properties screen shot
Thank you...
Created ‎07-05-2016 11:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To update the name of the file, you can use an UpdateAttribute processor and set the attribute 'filename' with the name of your choice using expression language [1]. If you want a name based on current time, you can use date functions, otherwise you can use the function UUID to generate a unique filename for each flow file.
That would be a property filename with ${UUID()}
[1] https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html
Hope this helps.
Created ‎08-03-2016 10:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This post is similar to your use case and shows how to rename the file for repeated ingests as @Pierre Villard describes
Created ‎07-11-2016 07:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎07-22-2016 08:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you ever run into problems in terms of API permission? I am trying to do something similar, searching for a specific word in public posts and fetch them using NiFi and pushing it to HDFS but I am having trouble doing so.
Could you share a template with me if you get any further in this process?
Thanks
Created on
‎03-01-2017
02:00 PM
- last edited on
‎10-13-2019
06:39 AM
by
ask_bill_brooks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wrote this for basic facebook ingest
Created ‎10-12-2019 05:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The link is no longer valid. Could you please update?
Thanks in advance.
Created ‎10-13-2019 06:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Mostafa01 The link in Tim's reply above has been updated and should correctly resolve now.
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
