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

Realtime Updates for Pages an App Manages #608

Open
stevendelarwelle opened this issue Apr 27, 2017 · 0 comments
Open

Realtime Updates for Pages an App Manages #608

stevendelarwelle opened this issue Apr 27, 2017 · 0 comments

Comments

@stevendelarwelle
Copy link

stevendelarwelle commented Apr 27, 2017

Realtime updates doesn't have a method to subscribe an app to pages managed by that app. After going over the Fb Webhook Documentation is looks like its not only possible but fairly simple.

Heres what the request needs.
PAGE_ID
PAGE_TOKEN

all you need to do is make POST request to /page_id/subscribed_apps using the page token your app was assigned for that page. Fb returns {"success":true} and you are now subscribed.
graph

currently realtime updates isn't set up to take a page id.

@updates = Koala::Facebook::RealtimeUpdates.new(:app_id => YOUR_APP_ID, :secret => YOUR_APP_SECRET)

or

@updates = Koala::Facebook::RealtimeUpdates.new(:app_id => YOUR_APP_ID, :app_access_token => YOUR_ACCESS_TOKEN)

If realtime updates could be changed to include this functionality that would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant