
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
fb_utils is Ruby gem that lets you get and save facebook comments.
You can save comment in txt or csv file.
Type
gem install fb_utils
or
add this to your Gemfile and run the bundle command
gem 'fb_utils'
#Usage
If you need to just get comments, call get method with URL
# return Array of comments
comments = FbUtils::Comment.get('http://www.example.com')
comment = comments.first
puts comment.id #=> "388101711259_17396935"
puts comment.message #=> "Hello world"
puts comment.created_time #=> "2011-07-26T01:23:34+0000"
puts comment.from_name #=> "Lukasz Kr"
puts comment.from_id #=> "123456789101112"
In order to save comments in file system, call save method with URL and file name.
You can choose txt or csv file type (or write your own writer).
Default is txt.
# Save comments in example_com.txt file
FbUtils::Comment.save('http://www.example.com', 'example_com')
# Save comments in example_com.csv file
FbUtils::Comment.save('http://www.example.com', 'example_com', :format => :csv)
# For csv file you can pass additional parameters
FbUtils::Comment.save('http://www.example.com', 'example_com',
:format => :csv,
:fields_terminated_by => ";",
:fields_enclosed_by => "'",
:lines_terminated_by => "\n"
)
http://developers.facebook.com/docs/reference/plugins/comments/
FAQs
Unknown package
We found that fb_utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.