Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scheduled_posts endpoint added #133

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lib/fb_graph2/edge/scheduled_posts.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module FbGraph2
class Edge
module ScheduledPosts
def scheduled_posts(params = {})
posts = self.edge :scheduled_posts, params
posts.collect! do |post|
Post.new(post[:id], post).authenticate self.access_token
end
end
end
end
end
1 change: 1 addition & 0 deletions lib/fb_graph2/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Page < Node
include Edge::Blocked
include Edge::Conversations
include Edge::SendApi
include Edge::ScheduledPosts
include Edge::Events
include Edge::Feed
include Edge::GlobalBrandChildren
Expand Down